New
Storybook’s Visual Tests addon enters betaVisual test with Chromatic
Star82,054
Back to integrations
Add your integration
Categories
  • ⭐️ Popular
  • 🧩 Essentials
  • πŸ›  Code
  • ⚑️ Data & state
  • βœ… Test
  • πŸ’… Style
  • 🎨 Design
  • βš™οΈ Appearance
  • πŸ—„ Organize
How to install addons Create an addon
@socheatsok78/storybook-addon-vuetify
Deprecated
πŸ““ Storybook's Vuetify πŸ‰ Addon
npm install @socheatsok78/storybook-addon-vuetify
673
Downloads per week
Readme View on GitHub

⚠️⚠️ This repository is no longer maintained ⚠️⚠️

See https://github.com/mikinovation/storybook-addon-vuetify3

@socheatsok78/storybook-addon-vuetify

πŸ““ Storybook's Vuetify πŸ‰ Addon

@npm license

Install

yarn add -D @socheatsok78/storybook-addon-vuetify

Usage

Add @socheatsok78/storybook-addon-vuetify addon to .storybook/main.js

module.exports = {
  addons: [
    '@socheatsok78/storybook-addon-vuetify'
  ]
}

Add vueitfy decorator to .storybook/preview.js

import { withVuetify } from '@socheatsok78/storybook-addon-vuetify/dist/decorators'

export const decorators = [
  withVuetify
]

You can add withThemeProvider to use vuetify theme settings. But make sure to add globalTypes as shown.

import { withVuetify, withThemeProvider } from '@socheatsok78/storybook-addon-vuetify/dist/decorators'

export const globalTypes = {
  theme: {
    name: 'Theme',
    description: 'Global theme for components',
    defaultValue: 'light',
    toolbar: {
      icon: 'circlehollow',
      items: ['light', 'dark']
    }
  }
}

export const decorators = [
  withThemeProvider,
  withVuetify
]

License

Licensed under the MIT License.

Join the community
6,495 developers and counting
WhyWhy StorybookComponent-driven UI
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI