montblanc-ui-lib
v1.2.11
Published
react component library
Downloads
17
Maintainers
Readme
React Component Library
Preview link: https://ui.montblanc.frida.casa/
Development
Testing
npm run test
Building
npm run build
Storybook
To run a live-reload Storybook server on your local machine:
npm run storybook
To export Storybook as static files:
npm run build-storybook
Prettier
To format code:
npm run prettier
Publishing
To login to the npm account:
npm login
Remember to check the version and remove private: true from package.json every time before publishing.
To publish run:
npm publish
Using
To use locally:
- In the root of montblanc-ui directory run:
npm install
npm link
- npm link montblanc-ui to react in your app to fix react hook error:
npm link '../YOUR_APP_NAME/node_modules/react'
- In the root of your app directory link your app to montblanc-ui:
npm link montblanc-ui-lib
- Import nessessary components
import { Button } from 'montblanc-ui-lib'
To use published npm package:
- Install
npm i montblanc-ui-lib
- Import nessessary components
import { Button } from 'montblanc-ui-lib'