storybook/docs/snippets/common/button-story-controls-primary-variant.mdx.mdx
2021-11-04 21:07:00 +00:00

21 lines
345 B
Plaintext

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