storybook/docs/snippets/react/component-story-mdx-story-by-name.mdx.mdx

19 lines
320 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) => <Button {...args} />;
<Story
name="Basic"
args={{
label: 'hello'
}}>
{Template.bind({})}
<Story>
```