storybook/docs/snippets/react/your-component-with-decorator.js.mdx
2021-05-11 22:15:34 +01:00

14 lines
226 B
Plaintext

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