storybook/docs/snippets/react/your-component-with-decorator.ts.mdx
2020-08-18 17:30:56 +01:00

8 lines
160 B
Plaintext

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