mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
13 lines
261 B
Plaintext
13 lines
261 B
Plaintext
```md
|
|
<!-- Button.stories.mdx --->
|
|
|
|
import { Story } from '@storybook/addon-docs';
|
|
|
|
import Button from './button.component';
|
|
|
|
export const Template = (args) => ({ props: args });
|
|
|
|
<Story name="Basic" args={{ label: 'hello' }}>
|
|
{Template.bind({})}
|
|
</Story>
|
|
``` |