A simple react component library
To install Alomni-UI you can use npm or yarn :
$ npm i alomni-ui
$ yarn add alomni-ui
Import Alomni-UI style manually in index.js
:
import "alomni-ui/dist/alomni-ui.css";
To overwrite the default style/colors of Alomni-UI follow this guide.
Example of Alomni-UI usage:
import { useState } from "react";
import { Button, Text } from "alomni-ui";
function App() {
const [counter, setCounter] = useState(0);
return (
<div style={{ margin: "50px" }}>
<Button width="full" onClick={() => {setCounter(counter + 1);}}>Click me !</Button>
<Text size="l" color="blue" style={{ textAlign: "center" }}>{counter}</Text>
</div>
);
}
Alomni-UI use Storybook as the main documentation, which describes the library and gives examples of its usage.
To run the Storybook you have to clone the github repository of Alomni-UI and execute the command npm run storybook
.