storybook/docs/snippets/vue/your-component-with-decorator.js.mdx
2022-11-17 16:33:22 +01:00

16 lines
426 B
Plaintext

```js
// YourComponent.stories.js
import YourComponent from './YourComponent.vue';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/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>' })],
};
```