storybook/docs/snippets/react/your-component-with-decorator.ts.mdx
2021-05-18 09:32:32 +08:00

16 lines
277 B
Plaintext

```ts
// YourComponent.stories.ts | YourComponent.stories.tsx
import { Meta } from '@storybook/react';
export default {
component: YourComponent,
decorators: [
(Story) => (
<div style={{ margin: '3em' }}>
<Story/>
</div>
),
],
} as Meta;
```