import type { Meta, StoryObj } from "@storybook/react-vite"; import { Button } from "./button"; const meta: Meta = { title: "UI/Button", component: Button, tags: ["autodocs"], argTypes: { variant: { control: "select", options: ["default", "destructive", "outline", "secondary", "ghost", "link"], }, size: { control: "select", options: ["default", "sm", "lg", "icon", "icon-sm", "icon-lg"], }, disabled: { control: "boolean" }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: "Button", }, }; export const Destructive: Story = { args: { variant: "destructive", children: "Delete", }, }; export const Outline: Story = { args: { variant: "outline", children: "Outline", }, }; export const Secondary: Story = { args: { variant: "secondary", children: "Secondary", }, }; export const Ghost: Story = { args: { variant: "ghost", children: "Ghost", }, }; export const Link: Story = { args: { variant: "link", children: "Link", }, }; export const Small: Story = { args: { size: "sm", children: "Small", }, }; export const Large: Story = { args: { size: "lg", children: "Large", }, }; export const Disabled: Story = { args: { children: "Disabled", disabled: true, }, }; export const AllVariants: Story = { render: () => (
), }; export const AllSizes: Story = { render: () => (
), };