ali-hazan / nuxt

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storybook for Nuxt framework

sb-nuxt (2)

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

nuxt-sb.mov

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)

Requirements

Demo

Checkout the demo repo storybook7-nuxt3-demo or try it on Stackblitz

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

In progress

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

About

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


Languages

Language:TypeScript 85.8%Language:JavaScript 10.4%Language:Vue 3.8%