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