Button
Versatile button with variants, sizes, loading state, and icon support.
Installation
Install Button from the Fluid Effect UI registry.
Playground
Variants
With Icons
Keyboard Shortcut
Loading & Disabled
API Reference
Types come from the public API. A dash indicates no default is documented here.
Button props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
children | View.Children<Msg, R> | — | |
leadingIcon | View.Content<Msg, R> | — | |
shortcut | string | readonly string[] | — | Display-only key caps; callers own shortcut event handling. Hidden for icon-only buttons. |
trailingIcon | View.Content<Msg, R> | — | |
variant | "primary" | "secondary" | "tertiary" | "ghost" | "destructive" | — | |
buttonSize | ButtonSize | — | |
shape | ShapeVariant | — | |
type | "button" | "reset" | "submit" | — | |
disabled | boolean | — | |
loading | boolean | — | |
active | boolean | — | |
popupExpanded | boolean | — | |
className | string | — | |
ariaLabel | string | — | |
onPress | NoInfer<Msg> | — |