fbredius/storybook

View on GitHub
docs/snippets/vue/list-story-starter.2.js.mdx

Summary

Maintainability
Test Coverage
```js
// List.stories.js

import List from './ListComponent.vue';

export default {
  /* 👇 The title prop is optional.
  * See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
  * to learn how to generate automatic titles
  */
  title: 'List',
  component: List,
};

// Always an empty list, not super interesting
const Template = (args, { argTypes }) => ({
  components: { List },
  props: Object.keys(argTypes),
  template: '<list v-bind="$props"/>',
});
```