Storybook integration with NuxtJS
- Zero configuration
- Nuxt webpack configuration
- Nuxt plugins support
- Story discovery from nuxt modules
- Nuxt components support
- Storybook Generate
- Hot reload support
- Add
@nuxtjs/storybookdependency to your project:#using yarn yarn add --dev @nuxtjs/storybook # using npm npm install --save-dev @nuxtjs/storybookIf you are using Nuxt < 2.14.0, you need to use
core-js@3
- Add
.nuxt-storybookandstorybook-staticto your.gitignore:.nuxt-storybook storybook-static
- Add
**/*.stories.jsto.nuxtignore**/*.stories.js
- Start adding stories
Then, add
storybooksection innuxt.config.js:export default { storybook: { // Options } }See module options.
Now you can use
nuxt storybookto start:# Using yarn yarn nuxt storybook # Using npm npx nuxt storybook
- Clone this repository
- Install dependencies using
yarn install- Start storybook server using
yarn devCopyright (c)
Repository navigation
forked from nuxt-modules/storybook
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
