📝(react) add documentation for Button component

Let's leverage the power of Storybook ! Use MDX file to create a
top notch documentation.
This commit is contained in:
Nathan Vasse
2023-01-13 17:14:39 +01:00
committed by NathanVss
parent 7b6d130d7d
commit 9fa0ff8ad3
2 changed files with 57 additions and 4 deletions

View File

@@ -11,25 +11,25 @@ const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />;
export const Primary = Template.bind({});
Primary.args = {
children: "Label",
children: "Primary",
color: "primary",
};
export const Secondary = Template.bind({});
Secondary.args = {
children: "Label",
children: "Secondary",
color: "secondary",
};
export const Tertiary = Template.bind({});
Tertiary.args = {
children: "Label",
children: "Tertiary",
color: "tertiary",
};
export const Disabled = Template.bind({});
Disabled.args = {
children: "Label",
children: "Disabled",
color: "primary",
disabled: true,
};