autoFocus | boolean | | Whether the element should receive focus on render. |
children | string | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...> | | The content to display in the button. |
defaultSelected | boolean | | Whether the element should be selected (uncontrolled). |
isDisabled | boolean | | Whether the button is disabled. |
isSelected | boolean | | Whether the element should be selected (controlled). |
onBlur | (e: FocusEvent<Element, Element>) => void | | Handler that is called when the element loses focus. |
onChange | (isSelected: boolean) => void | | Handler that is called when the element's selection state changes. |
onFocus | (e: FocusEvent<Element, Element>) => void | | Handler that is called when the element receives focus. |
onFocusChange | (isFocused: boolean) => void | | Handler that is called when the element's focus status changes. |
onKeyDown | (e: KeyboardEvent) => void | | Handler that is called when a key is pressed. |
onKeyUp | (e: KeyboardEvent) => void | | Handler that is called when a key is released. |
onPress | (e: PressEvent) => void | | Handler that is called when the press is released over the target. |
onPressChange | (isPressed: boolean) => void | | Handler that is called when the press state changes. |
onPressEnd | (e: PressEvent) => void | | Handler that is called when a press interaction ends, either
over the target or when the pointer leaves the target. |
onPressStart | (e: PressEvent) => void | | Handler that is called when a press interaction starts. |
onPressUp | (e: PressEvent) => void | | Handler that is called when a press is released over the target, regardless of
whether it started on the target or not. |