storybook/docs/snippets/vue/your-component-with-decorator.js.mdx
2021-11-09 01:41:54 +00:00

15 lines
418 B
Plaintext

```js
// YourComponent.stories.js
import YourComponent from './YourComponent.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: 'YourComponent',
component: YourComponent,
decorators: [() => ({ template: '<div style="margin: 3em;"><story/></div>' })],
};
```