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:
parent
1df5465639
commit
f46f25884a
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user