Storybook is an open source tool for developing UI components in isolation for React, Vue, Angular, and more. It makes building stunning UIs organized and efficient.
A tool to unite the collaboration of developer and designer.
Create uniformed building blocks for applications to maintain look styles and branding.
npx is a command that downloads and executes a depend ency.
npx sb init to run on your app.
Creating modular components with a lot of flexibility can save you a ton of time down the road.
yarn storybook will launch a storybook manager at localhost:6006 by default. There you can see your component library and manage it.
In a stories folder in the src, we will create storybook component routes with the following naming convention: Component.stories.js
Theses are created like you would other components with some additional syntax to facilitate the storybook experience.
In the storybook component file we can now create variations on the base component by passing it a different set of arguments. I.e for the Product we can have small and large versions.
09/4 Day 28 Lecture Notes
Storybook
Storybook is an open source tool for developing UI components in isolation for React, Vue, Angular, and more. It makes building stunning UIs organized and efficient.
A tool to unite the collaboration of developer and designer.
Create uniformed building blocks for applications to maintain look styles and branding.
Reusability is a big feature of creating component in React. https://storybook.js.org/
npx
is a command that downloads and executes a depend ency.npx sb init
to run on your app.Creating modular components with a lot of flexibility can save you a ton of time down the road.
yarn storybook
will launch a storybook manager at localhost:6006 by default. There you can see your component library and manage it.In a stories folder in the src, we will create storybook component routes with the following naming convention:
Component.stories.js
Theses are created like you would other components with some additional syntax to facilitate the storybook experience.
In the storybook component file we can now create variations on the base component by passing it a different set of arguments. I.e for the Product we can have small and large versions.