Files
cunningham/packages/react/src/components/Button/index.stories.tsx
Nathan Vasse be1c9d000b (react) add tokens.ts files handling
These files will be used to define the custom design tokens per components.
They are automatically aggregated by the packages/react/cunningham.ts file,
this is why handling typescript config file was important.
2023-01-11 11:01:56 +01:00

16 lines
394 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 Default = Template.bind({});
Default.args = {
children: "Amazing button",
};