storybook/docs/snippets/react/your-component-with-decorator.mdx.mdx
2021-08-09 19:19:01 +01:00

19 lines
317 B
Plaintext

```md
<!-- YourComponent.stories.mdx -->
import { Meta } from '@storybook/addon-docs';
import { YourComponent } from './YourComponent';
<Meta
title="YourComponent"
component={YourComponent}
decorators={[
(Story) => (
<div style={{ margin: '3em' }}>
<Story />
</div>
),
]}
/>
```