Skip to content

Commit d6c5bf2

Browse files
Update button examples
1 parent e21c570 commit d6c5bf2

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

stories/Form Elements/Button.stories.tsx

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,31 @@ export default meta;
4949
type Story = StoryObj<typeof Button>;
5050

5151
export const Primary: Story = {
52-
args: { children: 'Primary' },
53-
render: (args) => <Button {...args} />,
52+
args: {
53+
children: 'Save and continue',
54+
},
55+
};
56+
57+
export const Secondary: Story = {
58+
args: {
59+
secondary: true,
60+
children: 'Find my location',
61+
},
62+
};
63+
64+
export const Warning: Story = {
65+
args: {
66+
warning: true,
67+
children: 'Yes, delete this vaccine',
68+
},
69+
};
70+
71+
export const Reverse: Story = {
72+
args: {
73+
reverse: true,
74+
children: 'Log out',
75+
},
5476
};
55-
export const Secondary: Story = { args: { secondary: true, children: 'Secondary' } };
56-
export const Reverse: Story = { args: { reverse: true, children: 'Reverse' } };
57-
export const Warning: Story = { args: { warning: true, children: 'Warning' } };
5877

5978
/**
6079
*
@@ -76,14 +95,13 @@ export const PreventDoubleClickButton: Story = {
7695
onClick: () => console.log(new Date()),
7796
children: 'Debounced Button',
7897
},
79-
render: (args) => <Button {...args} />,
8098
};
99+
81100
export const PreventDoubleClickLinkButton: Story = {
82101
args: {
83102
preventDoubleClick: true,
84103
href: '#',
85104
onClick: () => console.log(new Date()),
86105
children: 'Debounced Button as Link',
87106
},
88-
render: (args) => <Button {...args} />,
89107
};

0 commit comments

Comments
 (0)