storybook/docs/snippets/common/widget-story-controls-enum.mdx.mdx
2020-10-24 21:09:28 +08:00

17 lines
236 B
Plaintext

```md
<!-- Widget.stories.mdx -->
<Meta
title='Widget'
component={Widget}
argTypes={{
loadingState: {
control: {
type: 'inline-radio',
options: ['loading', 'error', 'ready'],
},
},
}}
/>
```