Integrate Storybook into your Nuxt application.
npx nuxi@latest module add storybook
Update your nuxt.config:
modules: [
'@nuxtjs/storybook',
],
storybook: {
url: 'http://localhost:6006',
storybookRoute: '/__storybook__',
port: 6006,
},
Then run pnpm dev to start your Nuxt server.
https://github.com/storybook-vue/nuxt-storybook-module-demo
π Zero configuration to start (see video)
πͺ Access Storybook Terminal
π¨ Devtools tab with Storybook app
βοΈ Reference your Storybook config in your app
π¦ Extendable by Nuxt modules
π Supports Nuxt 3 / Storybook 8
Nuxt 2 is supported with Storybook v6, you can check legacy code on the v4 branch.
pnpm.pnpm dev:prepare to generate stubbed dist directory.pnpm lint to verify that there are no issues (consider adding tests).This repository is licensed under the MIT License. Feel free to use the code and modify it according to your needs.
π Mail: javachakir@gmail.com
π¬ Discord: ChakAs3
π¦ββ¬ Twitter: @ChakirQatab
Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.