1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

added interface to button story

This commit is contained in:
Enzo Vezzaro 2022-04-25 07:40:49 -04:00
parent 1df5465639
commit f46f25884a

View File

@ -14,7 +14,16 @@ const Template: ComponentStory<typeof Button> = (args: ButtonProps) => (
<Button {...args} />
)
export const Primary = Template.bind({})
interface Props {
args: {
children: string
style: string
size: string
onClick: any
}
}
export const Primary: Props = Template.bind({})
// More on args: https://storybook.js.org/docs/react/writing-stories/args
Primary.args = {
children: 'Button',