mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 03:41:06 +08:00
Add Story type to example
This commit is contained in:
parent
7a76812c41
commit
90a53e6745
@ -1,6 +1,8 @@
|
|||||||
```ts
|
```ts
|
||||||
// Button.stories.ts
|
// Button.stories.ts
|
||||||
|
|
||||||
|
import { Story } from '@storybook/react';
|
||||||
|
|
||||||
const Template: Story<ButtonProps> = (args) => <Button {...args} />;
|
const Template: Story<ButtonProps> = (args) => <Button {...args} />;
|
||||||
|
|
||||||
export const Primary = Template.bind({});
|
export const Primary = Template.bind({});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user