mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
8 lines
160 B
Plaintext
8 lines
160 B
Plaintext
```ts
|
|
// YourComponent.stories.tsx
|
|
|
|
export default {
|
|
component: YourComponent,
|
|
decorators: [(Story) => <div style={{ margin: '3em' }}><Story/></div>]
|
|
}
|
|
``` |