mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 22:51:54 +08:00
13 lines
303 B
Plaintext
13 lines
303 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]}/>
|
|
``` |