Button
Action buttons (`Button`) and compact icon-only buttons (`IconButton`) driven by the active `--app` accent.
Variants & Sizes
Maximum one primary button per view. Click any button to test interaction.
Total clicks: 0
Icons, Loading & Block Width
The loading prop swaps the leading icon for a spinner and disables clicks while busy.
API Reference (Props)
| Name | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'primary' | 'ghost' | 'won' | 'good' | 'danger' | 'default' | Visual style variant. Keep at most one `primary` button per toolbar or surface. |
| size | 'sm' | 'md' | 'big' | 'md' | Height and padding scale of the button. |
| icon | IconName | — | Leading Kallo sprite icon; automatically replaced by a spinner when `loading` is true. |
| iconRight | IconName | — | Trailing icon displayed after the button label. |
| loading | boolean | false | Shows an inline spinner and disables interaction. |
| block | boolean | false | Stretches the button to 100% of its container width. |
| label (IconButton)* | string | — | Required accessible name and tooltip for `IconButton`. |