storybook/docs/snippets/common/button-story-controls-primary-variant.mdx.mdx
2021-10-12 19:10:23 +01:00

19 lines
380 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Button } from './Button';
<Meta title="Button" component={Button} />
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
<Story
name="Primary"
args={{
variant: 'primary',
}}
render={() => ({ })}>
</Story>
```