import type { Meta, StoryObj } from "@storybook/react-vite"; import { Play } from "lucide-react"; import { Button } from "@/components/ui/button"; const VARIANTS = [ "default", "secondary", "outline", "ghost", "link", "destructive", ] as const; const SIZES = ["default", "sm", "lg", "icon"] as const; const meta = { title: "UI/Button", component: Button, args: { children: "Stream" }, argTypes: { variant: { control: "select", options: VARIANTS }, size: { control: "select", options: SIZES }, disabled: { control: "boolean" }, }, } satisfies Meta; export default meta; type Story = StoryObj; /** Playground — drive variant/size/disabled from the Controls panel. */ export const Playground: Story = {}; export const Variants: Story = { render: () => (
{VARIANTS.map((variant) => ( ))}
), }; export const Sizes: Story = { render: () => (
), };