mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:41:08 +08:00
16 lines
277 B
Plaintext
16 lines
277 B
Plaintext
```ts
|
|
// YourComponent.stories.ts | YourComponent.stories.tsx
|
|
|
|
import { Meta } from '@storybook/react';
|
|
|
|
export default {
|
|
component: YourComponent,
|
|
decorators: [
|
|
(Story) => (
|
|
<div style={{ margin: '3em' }}>
|
|
<Story/>
|
|
</div>
|
|
),
|
|
],
|
|
} as Meta;
|
|
``` |