fbredius/storybook

View on GitHub
docs/snippets/react/your-component-with-decorator.mdx.mdx

Summary

Maintainability
Test Coverage
```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>
    ),
  ]}
/>
```