Button
Clickable action with variants, sizes and asChild.
Import
tsx
import { Button } from "@cooud-ui/ui";
bash
npx cooud-ui add button
Examples
API Reference
Generated from the component's exported types.
ButtonProps
Extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | — |
variant | "primary" | "gradient" | "secondary" | "outline" | "ghost" | "destructive" | "link" | "primary" | — |
size | "sm" | "md" | "lg" | "icon" | "icon-sm" | "md" | — |