# Starton - UI for NextJS with MUI

NextJS graphics library based on Material UI.

## Installing

### Using this library from NPM
1. Initialize your NextJS project ([https://nextjs.org/docs/getting-started](https://nextjs.org/docs/getting-started))

2. Install dependency with `npm` or `yarn`
```
npm install -D @starton/ui-nextjs
```
or
```
yarn add -D @starton/ui-nextjs
```

3. Your NextJS project is ready to use the Starton UI! Congratulations 🥳

### Using this library locally

Once your component is created and tested on Storybook. You may need to test it on a NextJS or React project to ensure it works. To do this, you can install it locally before implementing it in production.

To do so, you need to follow these steps:
1. Get the path to the graphical library. In my example: `/home/startonlibraries/starton-ui-nextjs` ;
2. Go to your NextJS or React project to install your graphics library: `yarn add 
   /home/starton/libraries/starton-ui-nextjs`.
3. You can now use your library as normal. You just need to do an import as below:
```jsx
   import { StartonButton } from '@starton/ui-nextjs'
```
