Primitive
CLI registryButton
Primary action control with variants and sizes.
Preview → install → use
01
Preview
npx shadcn@latest add @atroui/buttonSource lands in your repo. Setup: Installation · Registry catalog.
02
Usage
Prefer one primary button per view. Use outline/ghost for secondary actions; destructive sparingly.
03
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'outline' | 'secondary' | 'ghost' | 'destructive' | 'link' | 'default' | Visual style. |
| size | 'default' | 'xs' | 'sm' | 'lg' | 'icon' | … | 'default' | Control size. |
| disabled | boolean | false | Disables the button. |
Button