Button
Action trigger with multiple variants, sizes, icons, and a loading state.
Basic
Variants
Colors
Sizes
With icons
Icon-only
Pair square sizes with aria-label so screen readers can announce the button. The icon class auto-sizes the glyph.
Icon sizes
Square sizes (icon-xs through icon-xl) are tuned for icon-only buttons; nested icons scale automatically.
Disabled
Loading
As a link
Pass href, navigate, or patch and the component renders an anchor element with the same styling.
Destructive with confirmation
Pair data-confirm with destructive actions; the browser confirms before phx-click fires.