Optionalaria-Identifies the element (or elements) whose contents or presence are controlled by the current element.
Optionalaria-Indicates whether this element represents the current item within a container or set of related elements.
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.
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.
OptionalformThe <form> element to associate the button with.
The value of this attribute must be the id of a <form> in the same document.
See MDN.
OptionalformThe URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner.
OptionalformIndicates how to encode the form data that is submitted.
OptionalformIndicates the HTTP method used to submit the form.
OptionalformIndicates that the form is not to be validated when it is submitted.
OptionalformOverrides the target attribute of the button's form owner.
OptionalhiddenOptionaliconOptionalidThe element's unique identifier. See MDN.
OptionalinertOptionalisWhether the button is disabled.
OptionalisWhether the button is in a pending state. This disables press and hover events while retaining focusability, and announces the pending state to screen readers.
OptionallangOptionalloadingOptionalnameSubmitted as a pair with the button's value as part of the form data.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the element loses focus.
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.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalpreventWhether 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.
OptionaltranslateOptionaltypeThe behavior of the button when used in an HTML form.
OptionalvalueThe value associated with the button's name when it's submitted with the form data.
Optionalvariant
Properties for ButtonIcon