Storybook docs
Last updated
Last updated
If you going to debug component stylings in a more easier way you can use our preset to style and test components in isolation.
1. Install the docs package as a dev dependency.
2. Run the command to apply Vueless Storybook preset to the project.
Which:
creates .storybook
folder with all needed configuration in the project's root.
adds commands into the project package.json
to run and build Storybook locally.
creates .npmrc
config (for pnpm
propject only).
3. Run Storybook ✨
Other available commands:
If you don’t plan to use certain Vueless components, you can hide them from Storybook by setting the storybook
key to false
in the specific component’s config.
For example, if you don’t plan to use UPagination
and UBadge
in your project, you can configure them as follows: