Storybook Since 3.2, support for Vuejs has been added, so I will try using it at once.
Storybook is a tool that makes it easy to create catalogs of components, cataloging self-made components in the project and how to use it.
Installation of storybook / cli
npm i - g @ storybook / cli
Prepared by existing Vuejs project
cd Directory where vuejs project is located
Installing the storybook
getstorybook
Start storybook server
yarn run storybook
In this state, opening http://localhost:6006/ opens the default setting screen.
Add component
To add a component to a storybook, add a definition to index.js
in thestories
directory created with getstorybook
.
You can change this stories
directory by editing.storybook / config.js
.
Top comments (0)