storybook/docs/snippets/react/your-component-with-decorator.js.mdx
2021-09-03 23:31:04 +01:00

17 lines
279 B
Plaintext

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