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.
16 lines
394 B
TypeScript
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",
|
|
};
|