Skip to content

nuxt-modules/storybook

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 6, 2023 13:25
October 4, 2023 09:21
September 30, 2023 18:10
August 28, 2023 00:49
August 28, 2023 00:23
August 28, 2023 00:23
September 19, 2023 21:45
October 11, 2023 15:53
October 4, 2023 09:23
October 4, 2023 09:21

Nuxt Storybook

Nuxt Storybook

Integrate Storybook into your Nuxt application.

Installing

pnpm add -D @nuxtjs/storybook

Update your nuxt.config:

  modules: [
    '@nuxtjs/storybook',
  ],
  storybook: {
    url: 'http://localhost:6006',
    storybookRoute: '/__storybook__',
    port: 6006,
  },

Then run pnpm dev to start you 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 7

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 is 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