Button
A versatile button component with multiple variants, sizes, and navigation support.
Default
Variants
The button component supports multiple visual variants for different contexts.
Variants
Sizes
Buttons come in different sizes to fit various UI contexts.
Sizes
With Icon
Add icons to buttons for better visual communication.
With Icon
Loading State
Show a loading state while an action is being processed.
Loading
As Link
Buttons can render as links using the
navigate
,
patch
, or
href
props.
As Link
Notes
-
When using
size="icon", always provide anaria-labelfor accessibility. -
The loading state automatically sets
aria-busy="true"and disables the button. -
Use
navigatefor LiveView navigation,patchfor same-LiveView updates, andhreffor external links.