pswui/packages/react/stories/Button.stories.ts
2024-05-18 21:11:19 +09:00

23 lines
556 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react";
import { Button } from "../components/Button";
const meta: Meta<typeof Button> = {
component: Button,
tags: ["autodocs"],
argTypes: {
variant: { options: ["default", "ghost"], control: "select" },
size: { options: ["sm", "md", "lg"], control: "select" },
},
args: { children: "Button", onClick: () => console.log("clicked") },
};
export default meta;
type Story = StoryObj<typeof Button>;
export const Default: Story = {
args: {
variant: "default",
size: "md",
},
};