JSPM

@storybook/vue

5.2.0-rc.11
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 52266
  • Score
    100M100P100Q34124F
  • License MIT

Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.

Package Exports

  • @storybook/vue
  • @storybook/vue/bin/build
  • @storybook/vue/bin/build.js
  • @storybook/vue/bin/index
  • @storybook/vue/bin/index.js
  • @storybook/vue/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@storybook/vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Storybook for Vue

Storybook for Vue is a UI development environment for your Vue components. With it, you can visualize different states of your UI components and develop them interactively.

Storybook Screenshot

Storybook runs outside of your app. So you can develop UI components in isolation without worrying about app specific dependencies and requirements.

Getting Started

cd my-vue-app
npx -p @storybook/cli sb init

For more information visit: storybook.js.org

Starter Storybook-for-Vue Boilerplate project with Vuetify Material Component Framework

https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate


Storybook also comes with a lot of addons and a great API to customize as you wish. You can also build a static version of your storybook and deploy it anywhere you want.

Vue Notes

  • When using global custom components or extension (e.g Vue.use). You will need to declare those in the ./storybook/config.js.

Known Limitations

In Storybook story and decorator components you can not access the Vue instance in factory functions for default prop values:

{
  props: {
    foo: {
      default() {
        return this.bar; // does not work!
      }
    }
  }
}