Integrate Storybook into your Nuxt application.
npx nuxi@latest module add storybook
npm install -D storybook@nextStorybook 11 is published under the next tag until its release. The first command adds @nuxtjs/storybook to the modules of your nuxt.config:
export default defineNuxtConfig({
modules: ['@nuxtjs/storybook'],
})Then run nuxt dev: Storybook is served by the Nuxt dev server under /_storybook/ (http://localhost:3000/_storybook/ by default).
Read the documentation to set up .storybook/main.ts and write your first stories.
👌 Zero configuration to start
🔌 Served by nuxt dev, on the same host and port as your app
🎨 Devtools tab with the Storybook app
🏭 CSF Factories with typed parameters.nuxt
🧪 Mock auto-imports, components and server endpoints in your stories
📦 Extendable by Nuxt modules
🚀 Supports Nuxt 4 and Nuxt 5 with Storybook 11
- Node.js 22+
- Nuxt 4.x or Nuxt 5.x
- Storybook 11.x
- Install dependencies with
pnpm. - Run
pnpm dev:prepareto generate stubbeddistdirectory. - Make your changes.
- Run
pnpm lintto verify that there are no issues (consider adding tests). - Submit a PR.
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.
