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.

IconButton — Compact Icon Controls

Requires an accessible label prop (wired to aria-label & title) with pressed active toggle state.

API Reference (Props)

NameTypeDefaultDescription
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.
iconIconName—Leading Kallo sprite icon; automatically replaced by a spinner when `loading` is true.
iconRightIconName—Trailing icon displayed after the button label.
loadingbooleanfalseShows an inline spinner and disables interaction.
blockbooleanfalseStretches the button to 100% of its container width.
label (IconButton)*string—Required accessible name and tooltip for `IconButton`.