It's a simple and faster React UI
saru-ui is available as an npm package.
To install it, run:
//with npm
npm install saru-ui
//with yarn
yarn add saru-ui
Here is a quick example to get you started, it's all you need:
import React from 'react';
import { Button, GlobalStyles } from 'saru-ui/lib';
function App() {
return (
<>
<GlobalStyles />
<Button>
OK
</Button>
</>
);
}
export default App;
build
: build the files in thelib
directorystorybook
: run the storybook at the addresslocalhost:6006
deploy-storybook
: deploy the storybook to the branchgh-pages
prettier:check
: check formatting on allsrc
directoryprettier:format
: formats allsrc
directory
/.storybook
/lib
/src
├── index.ts
├── packages
| ├── index.ts
| ├── button
| | └── ...
├── global
| ├── index.ts
| ├── styles.ts
/stories
├── packages
| ├── button
| | └── stories.tsx
├── utils
This project is licensed under the MIT License.