mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:11:49 +08:00
12 lines
201 B
Plaintext
12 lines
201 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
const Template: Story<ButtonProps> = (args) => <Button {...args} />;
|
|
|
|
export const Primary = Template.bind({});
|
|
|
|
Primary.args = {
|
|
primary: true,
|
|
label: 'Primary',
|
|
};
|
|
``` |