Button
Trigger actions with a range of variants, sizes, and icon layouts.
API reference
A clickable button with class-variance-authority variants and sizes, including icon-only sizes.
Full props on Base UI ButtonAnatomy
Button | Clickable button with a configurable visual variant and size. |
Props
| Part | Prop | Type | Default | Description |
|---|---|---|---|---|
Button | variant | "default" | "outline" | "secondary" | "ghost" | "destructive" | "success" | "warning" | "info" | "destructive-subtle" | "success-subtle" | "warning-subtle" | "info-subtle" | "link" | "default" | Style: neutral, semantic solid/subtle, or link. |
Button | size | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "default" | Dimensions: default, xs, sm, lg, and icon variants. |