- Components
- Forms
Button
Pill button on Base UI. Presses down 1px with a 50ms inset shadow and releases over 180ms.
Installation#
npx shadcn add @ortaui/buttonExamples#
Variants#
Sizes#
With icon#
Disabled#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| surface | "default" | "raised" | auto | Look on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface. |
| variant | "primary" | "secondary" | "ghost" | "outline" | "destructive" | "link" | "primary" | Visual style. |
| size | "sm" | "md" | "icon" | "md" | sm 36px, md 42px, icon is a 36px circle. |
| render | ReactElement | - | Render as another element (Base UI), e.g. a link. |
| className | string | - | Merged with the component classes via cn(). |