childrenRequired | React.ReactNode | Not set | Icon element rendered inside the button |
defaultPressed | boolean | undefined | Not set | Initial pressed state of an uncontrolled toggle |
nativeButton | boolean | undefined | Not set | Whether the rendered element is a native `<button>`. Inferred from an
element passed to `render` (a `<button>`, or a component without `href`). |
onPressedChange | ((pressed: boolean) => void) | undefined | Not set | Called with the next pressed state |
pending | boolean | undefined | Not set | Work is running: aria-busy, presses ignored, a spinner replaces the glyph after a second |
pressed | boolean | undefined | Not set | Controlled pressed state; any of pressed, defaultPressed or onPressedChange makes the button a toggle with aria-pressed |
render | useRender.RenderProp<Record<string, unknown>> | undefined | Not set | Replace the rendered element, e.g. an anchor or a router link; a rendered anchor keeps link semantics and takes the look, pending and disabled behaviour |
size | "xs" | "sm" | "md" | "lg" | undefinedxssmmdlg | "md" | Square control on the one track: xs 24, sm 28, md 32, lg 40 |
value | string | undefined | Not set | Form value of the button, or the toggle's value inside a group. |
variant | "soft" | "ghost" | undefinedsoftghost | ghost | ghost is transparent at rest; soft is the neutral tint shared with Button soft |
aria-label | string | undefined | Not set | Accessible action name when no labelled-by relationship is available |
aria-labelledby | string | undefined | Not set | ID reference for an external accessible action label |
disabled | boolean | undefined | Not set | — |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Not set | — |
type | "button" | "submit" | "reset" | undefinedbuttonsubmitreset | button | — |