Storybook docs
If you going to debug component stylings in a more easier way you can use our Storybook preset to style and test components in isolation.
Installation
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 (forpnpm
propject only).
If the .storybook
folder already exists, the command will back it up by renaming it to .storybook-backup-{timestamp}
. You should migrate your custom configuration (if any) and remove the backup folder manually afterward.
3. Run Storybook ✨
Other available commands:
Hiding unused components in storybook
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:
Last updated