Skip to content

nuxt-modules/storybook

Folders and files

NameName
Last commit message
Last commit date
Jan 16, 2025
Aug 13, 2024
Jan 16, 2025
Mar 1, 2025
Mar 1, 2025
Mar 1, 2025
Sep 22, 2024
Jul 3, 2024
Apr 20, 2024
Sep 22, 2024
Jul 7, 2024
Aug 27, 2023
Apr 20, 2024
Dec 28, 2024
Aug 13, 2024
Jul 11, 2024
Apr 23, 2024
Feb 22, 2025
Sep 22, 2024
Mar 1, 2025
Jun 29, 2024
Aug 11, 2024
Jan 16, 2025
Mar 22, 2024
Sep 22, 2024

Repository files navigation

Nuxt Storybook

Nuxt Storybook

Integrate Storybook into your Nuxt application.

Installing

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.

Demo

https://github.com/storybook-vue/nuxt-storybook-module-demo

Features

πŸ‘Œ 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

Nuxt 2 is supported with Storybook v6, you can check legacy code on the v4 branch.

Contributing

  1. Install dependencies with pnpm.
  2. Run pnpm dev:prepare to generate stubbed dist directory.
  3. Make your changes.
  4. Run pnpm lint to verify that there are no issues (consider adding tests).
  5. Submit a PR.

License

This repository is licensed under the MIT License. Feel free to use the code and modify it according to your needs.

Contacts :

πŸ”– Mail: javachakir@gmail.com

πŸ’¬ Discord: ChakAs3

πŸ¦β€β¬› Twitter: @ChakirQatab

Sponsors

Chromatic

Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.