storybook/docs/snippets/react/your-component-with-decorator.js.mdx
2021-02-23 00:26:03 +00:00

8 lines
158 B
Plaintext

```js
// YourComponent.stories.js
export default {
component: YourComponent,
decorators: [(Story) => <div style={{ margin: '3em' }}><Story/></div>]
}
```