Boilerplate React with storybook

Published

Access the storybook page

npm install -D

  • tailwindcss
  • postcss (bundle css)
  • autoprefixer (webkit, moss etc)
  • msw and msw addon for mock api

init tailwindcss to create tailwind config file

  • npx tailwindcss init -p

Installing storybook with command line

  • npx sb init --builder @storybook/builder-vite --use-npm
  • clsx to create variation classes for tailwind
  • npm i --save clsx
  • radix ui

Depploy Storybook

  • npm i @storybook/storybook-deployer --save-dev
  • show repo online gh repo view -w