storybook/docs/snippets/react/component-story-mdx-story-by-name.mdx.mdx
2021-08-09 19:19:01 +01:00

14 lines
259 B
Plaintext

```md
<!-- Button.stories.mdx --->
import { Story } from '@storybook/addon-docs';
import { Button } from './Button';
export const Template = (args) => <Button {...args} />;
<Story name="Basic" args={{ label: 'hello' }}>
{Template.bind({})}
</Story>
```