Skip to content

Releases: mattrothenberg/vue-storybook

Group stories

10 May 18:39
Compare
Choose a tag to compare

Expose group attribute for grouping stories.

Auto(magic) Story Registration

08 Apr 17:05
Compare
Choose a tag to compare

As per #3, stories are now automatically registered by the very presence of tags in a given component.

This is a breaking change.

import { registerStories } from 'vue-storybook'
import { configure } from '@storybook/vue';

const req = require.context('./', true, /\.vue$/)
function loadStories() {
  req.keys().forEach((filename) => {
    registerStories(req, filename, storiesOf, {})
  })
}
loadStories()