yarn storybook
Note: this is a one-way operation. Once you eject
, you can’t go back!
yarn storybook
Create private npm package
https://storybook.js.org/tutorials/design-systems-for-developers/react/en/distribute/
Deployed the Storybook to Netlify
https://storybookcomp.netlify.app/
npm adduser
Add credentials to publish the build
To use package
Create file src/@types/dheeraj_anand_components/index.d.ts
Provide declaration declare module "@dheerajanand/components";
Config using Rollup Option: https://prateeksurana.me/blog/react-component-library-using-storybook-6/