It's a simple and faster React UI
sagu-ui is available as an npm package.
To install it, run:
//with npm
npm install sagu-ui
//with yarn
yarn add sagu-ui
styled-componets are required
Here is a quick example to get you started, it's all you need:
import React from 'react'
import { theme, SaguGlobalStyles, SaguProvider, Button } from 'sagu-ui'
function App() {
return (
<SaguProvider theme={theme}>
<SaguGlobalStyles />
<Button>Click me</Button>
</SaguProvider>
)
}
export default App
Take a look at some examples using Sagu-UI
You can contribute to this project by opening an issue or creating a pull request.
build
: build the files in thelib
directorysb
: run the storybook at the addresslocalhost:6006
prettier:check
: check formatting on allsrc
directoryprettier:format
: formats allsrc
directorygenerate <Component name>
: create a component boilerplatetest
: test all components
/.storybook
/lib
/src
├── index.ts
├── animations
| ├── placeholder.ts
├── hooks
| ├── ...
├── packages
| ├── index.ts
| ├── Button
| | ├── index.tsx
| | ├── stories.tsx
| | └── styles.ts
| | └── test.tsx
├── styles
| ├── global.ts
| ├── theme.ts
| ├── provider.ts
This project is licensed under the MIT License.