@starton/ui-nextjs
v1.3.5
Published
NextJS graphics library based on Material UI.
Downloads
70
Readme
Starton - UI for NextJS with MUI
NextJS graphics library based on Material UI.
Installing
Using this library from NPM
Initialize your NextJS project (https://nextjs.org/docs/getting-started)
Install dependency with
npm
oryarn
npm install -D @starton/ui-nextjs
or
yarn add -D @starton/ui-nextjs
- 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:
- Get the path to the graphical library. In my example:
/home/startonlibraries/starton-ui-nextjs
; - Go to your NextJS or React project to install your graphics library:
yarn add /home/starton/libraries/starton-ui-nextjs
. - You can now use your library as normal. You just need to do an import as below:
import { StartonButton } from '@starton/ui-nextjs'