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