Installation

Using Storybook in your NuxtJS project is only one command away ✨

Add @nuxtjs/storybook dependency to your project:

Yarn
yarn add --dev @nuxtjs/storybook postcss@latest
NPM
npm install --save-dev @nuxtjs/storybook postcss@latest

Next, add .nuxt-storybook and storybook-static to your .gitignore:

.gitignore
.nuxt-storybook
storybook-static

That's it ✨!

Now you can start adding stories .

Configuration

Then, add storybook section in nuxt.config.js:

nuxt.config.js
export default {
  storybook: {
    // Options
  }
}

See module options .

Edit this page on GitHub Updated at Tue, Jul 6, 2021