0.0.1 ā€¢ Published 8 months ago

@storybook-nuxt/monorepo v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

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

https://github.com/storybook-vue/nuxt/assets/711292/63cc1fb3-ec6b-4df2-ad61-d87e5692f385

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

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

0.0.1

8 months ago