Optionalaria-Identifies the element (or elements) whose contents or presence are controlled by the current element.
Optionalaria-Identifies the element (or elements) that describes the object.
Optionalaria-Identifies the element (or elements) that provide a detailed, extended description for the object.
Optionalaria-Indicates whether the element is disabled to users of assistive technology.
Optionalaria-Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Optionalaria-Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Optionalaria-Defines a string value that labels the current element.
Optionalaria-Identifies the element (or elements) that labels the current element.
Optionalaria-Indicates the current "pressed" state of toggle buttons.
OptionalautoWhether the element should receive focus on render.
OptionalchildrenThe children of the component. A function may be provided to alter the children based on component state.
OptionalclassThe CSS className for the element. A function may be provided to compute the class based on component state.
OptionaldefaultWhether the element should be selected (uncontrolled).
OptionaldirOptionalexcludeWhether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available.
OptionalhiddenOptionaliconOptionaliconOptionalidWhen used in a ToggleButtonGroup, an identifier for the item in selectedKeys. When used standalone, a DOM id.
OptionalinertOptionalisWhether the button is disabled.
OptionalisWhether the element should be selected (controlled).
OptionallangOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the element loses focus.
OptionalonHandler that is called when the element's selection state changes.
OptionalonNot recommended – use onPress instead. onClick is an alias for onPress
provided for compatibility with other libraries. onPress provides
additional event details for non-mouse interactions.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the element receives focus.
OptionalonHandler that is called when the element's focus status changes.
OptionalonOptionalonOptionalonHandler that is called when the hover state changes.
OptionalonHandler that is called when a hover interaction ends.
OptionalonHandler that is called when a hover interaction starts.
OptionalonHandler that is called when a key is pressed.
OptionalonHandler that is called when a key is released.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the press is released over the target.
OptionalonHandler that is called when the press state changes.
OptionalonHandler that is called when a press interaction ends, either over the target or when the pointer leaves the target.
OptionalonHandler that is called when a press interaction starts.
OptionalonHandler that is called when a press is released over the target, regardless of whether it started on the target or not.
OptionalonOptionalonOptionalonSurface the toggle button is placed on. Defaults to context surface if available
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalpreventWhether to prevent focus from moving to the button when pressing it.
Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control.
OptionalsizeOptionalslotA slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
OptionalstyleThe inline style for the element. A function may be provided to compute the style based on component state.
Optionaltranslate
Properties for ToggleButton