mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-10 00:12:22 +08:00
16 lines
326 B
Plaintext
16 lines
326 B
Plaintext
```ts
|
|
// YourComponent.stories.ts
|
|
|
|
import type { Meta } from '@storybook/svelte';
|
|
|
|
import YourComponent from './YourComponent.svelte';
|
|
import MarginDecorator from './MarginDecorator.svelte';
|
|
|
|
const meta = {
|
|
component: Button,
|
|
decorators: [() => MarginDecorator],
|
|
} satisfies Meta<typeof Button>;
|
|
|
|
export default meta;
|
|
```
|