storybook/docs/snippets/svelte/your-component-with-decorator.mdx.mdx
2021-08-09 19:19:01 +01:00

13 lines
302 B
Plaintext

```md
<!-- YourComponent.stories.mdx -->
import { Meta } from '@storybook/addon-docs';
import YourComponent from './YourComponent.svelte';
import MarginDecorator from './MarginDecorator.svelte';
<Meta
title="YourComponent"
component={YourComponent}
decorators={[() => MarginDecorator]}/>
```