Primitive
Button
Three variants, three sizes. Loading state, leading and trailing icons.
Preview
Import
Usage
Props
| Name | Type | Default | Description |
|---|---|---|---|
| variant | 'solid' | 'outline' | 'ghost' | 'solid' | Visual weight. |
| size | 'sm' | 'md' | 'lg' | 'md' | Pixel height tier. |
| leading | ReactNode | — | Icon placed before the label. |
| trailing | ReactNode | — | Icon placed after the label. |
| loading | boolean | false | Spinner replaces leading icon; button is disabled. |
When not to use
Links to other pages: use an anchor styled as a link, not a button. Primary call-to-action on a public marketing page: use a bigger, brand-specific CTA.