storybook/docs/snippets/common/button-story-controls-radio-group.mdx.mdx

18 lines
282 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta } from '@storybook/addon-docs';
import { Button } from './Button';
<Meta
title="Button"
component={Button}
argTypes={{
variant: {
options: ['primary', 'secondary'],
control: { type: 'radio' }
}
}}
/>
```