storybook/docs/snippets/react/your-component.mdx.mdx
2022-07-07 19:47:29 +01:00

16 lines
444 B
Plaintext

```md
<!-- YourComponent.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { YourComponent } from './YourComponent';
<!--👇 The title prop determines where your story goes in the story list -->
<Meta title="YourComponent" component={YourComponent} />
<!-- 👇 The args you need here will depend on your component -->
<Story
name="FirstStory"
args={{}}
render={(args) => <YourComponent {...args} />} />
```