Files
cunningham/packages/react/src/components/Button/index.stories.tsx
Nathan Vasse 7b6d130d7d (react) implement Button with official tokens
Now that we have all the official design tokens we can use them
to build the button component in various colors matching the
design system's ones.
2023-01-18 11:29:33 +01:00

36 lines
746 B
TypeScript

import { ComponentMeta, ComponentStory } from "@storybook/react";
import React from "react";
import { Button } from "./index";
export default {
title: "Button",
component: Button,
} as ComponentMeta<typeof Button>;
const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />;
export const Primary = Template.bind({});
Primary.args = {
children: "Label",
color: "primary",
};
export const Secondary = Template.bind({});
Secondary.args = {
children: "Label",
color: "secondary",
};
export const Tertiary = Template.bind({});
Tertiary.args = {
children: "Label",
color: "tertiary",
};
export const Disabled = Template.bind({});
Disabled.args = {
children: "Label",
color: "primary",
disabled: true,
};