storybook/docs/snippets/common/button-story-controls-primary-variant.mdx.mdx
2022-07-07 19:26:21 +01:00

17 lines
300 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Button } from './Button';
<Meta title="Button" component={Button} />
<Story
name="Primary"
args={{
variant: 'primary',
}}
render={() => ({ // Your implementation here })} />
</Story>
```