Skip to content

Storybook integration for Nuxt Framework - Unleashing the power of Storybook in Nuxt/Vue Land!"

Notifications You must be signed in to change notification settings

raichev-dima/storybook-nuxt

This branch is 42 commits behind storybook-vue/storybook-nuxt:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71b8db7 Β· Jan 13, 2024
Sep 10, 2023
Jul 25, 2023
Jan 13, 2024
Sep 29, 2023
Aug 15, 2023
Aug 29, 2023
Sep 10, 2023
Aug 15, 2023
Oct 7, 2023
Jan 13, 2024
Jan 13, 2024
Sep 14, 2023
Aug 31, 2023
Sep 3, 2023

Repository files navigation

Storybook for Nuxt framework

sb-nuxt (2)

Storybook package for Nuxt framework with zero configs. seamless integration supporting all Nuxt fancy features

https://www.veed.io/embed/1f9d58b6-3c76-43a1-a15e-ae95af8dff5f

Demos

Storybook module for setup:

Storybook Nuxt-Module

Storybook Nuxt-Module Demo

Supported Features

πŸ‘‰ Nuxt Modules

πŸ‘‰ Nuxt Plugins

πŸ‘‰ All in-built Nuxt Components

πŸ‘‰ Sass/Scss

πŸ‘‰ Css/Sass/Scss Modules

πŸ‘‰ JSX

πŸ‘‰ Postcss

πŸ‘‰ Auto Imports

πŸ‘‰ Runtime Config

πŸ‘‰ Composables

πŸ‘‰ Typescript (already supported out of the box by Storybook)

πŸ‘‰ Nuxt DevTools : finally as Bonus, Nuxt DevTools works amazingly with your Storybook, full features

storybook-nuxt-devtools.mov

Requirements

Getting Started

In a project without Storybook

Follow the prompts after running this command in your Nuxt project's root directory:

npx storybook-nuxt init

More on getting started with Storybook

Automatic migration

When running the upgrade command above, you should get a prompt asking you to migrate to @storybook-vue/nuxt, which should handle everything for you. In case auto-migration does not work for your project, refer to the manual migration below.

Update your main.js to change the framework property:

// .storybook/main.js
export default {
  // ...
  framework: {
    name: '@storybook-vue/nuxt', // Add this
    options: {},
  },
}

Documentation

check https://storybook.nuxtjs.org/

License

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

Contacts :

πŸ”– Mail: [email protected]

πŸ’¬ Discord: ChakAs3

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

About

Storybook integration for Nuxt Framework - Unleashing the power of Storybook in Nuxt/Vue Land!"

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 57.4%
  • Vue 26.2%
  • MDX 10.1%
  • CSS 4.4%
  • JavaScript 1.9%