Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Storybook integration with Nuxt.
Nuxt Storybook is a Nuxt module that integrates Storybook 10 into Nuxt 3 and Nuxt 4 applications, enabling component-driven UI development directly inside a Nuxt project.
Nuxt Storybook is a community-built Nuxt module (maintained by Chakir Qatab, also known as ChakAs3) that adds a fully configured Storybook environment to an existing Nuxt application. It takes a Nuxt project as its input and produces a development-time Storybook server attached to the Nuxt dev server, exposed by default at the /_storybook route on port 6006. The module supports Nuxt 3.x and Nuxt 4.x, requires Storybook 10.x, and runs on Node.js versions 20.19+, 22.12+, or 24+. It is released under the MIT License.
@nuxtjs/storybook to the modules array, so no separate Storybook config files are required to start.nuxt.config lets you set the host, route, and port; the defaults are http://localhost, /_storybook, and 6006./_storybook and interact with each component's stories with hot reload during Nuxt dev.npx nuxi@latest module add storybook.'@nuxtjs/storybook' to the modules array in your nuxt.config file and optionally set storybook options such as host, route, and port.pnpm dev to start the Nuxt server; the module boots a Storybook instance accessible at the configured route (default /_storybook) on the given port.Nuxt Storybook supports Nuxt 3.x and Nuxt 4.x. You also need Storybook 10.x installed in the project. Node.js requirements are 20.19+, 22.12+, or 24+; the module relies on features available in those versions.
Yes, the module is published under the MIT License, so you are free to use and modify the code. The repository is hosted on GitHub under the nuxt-modules organization, with 485 stars at the time of writing.
Run npx nuxi@latest module add storybook in your Nuxt project root. Then add '@nuxtjs/storybook' to the modules array in nuxt.config and, optionally, configure host, route, and port under a storybook key. Finally, start your dev server with pnpm dev.
Yes, define a storybook section in your nuxt.config with host, route, and port values. The defaults are http://localhost, /_storybook, and 6006 respectively.
The maintainer lists contact links in the README: email [email protected], Discord user ChakAs3, and Twitter (@ChakirQatab). The contribution guide asks you to install dependencies with pnpm, run pnpm dev:prepare to generate a stub dist directory, make changes, run pnpm lint, and submit a pull request.
