isPending? | | - |
form? | | - |
autoFocus? | | - |
isDisabled? | | - |
type? | | 'button' |
preventFocusOnPress? | | - |
formAction? | | - |
formEncType? | | - |
formMethod? | | - |
formNoValidate? | | - |
formTarget? | | - |
name? | | - |
value? | | - |
excludeFromTabOrder? | | - |
children? | | - |
variant? | The variant of the button | primary |
color? | Adjusts the color of the button for usage on different backgrounds. | blue |
animateIcon? | | - |
isIconOnly? | When the button is without text, but with a single icon. | true |
href? | A URL to link to. See MDN. | - |
| Events |
|---|
onFocus? | Handler that is called when the element receives focus. | - |
onBlur? | Handler that is called when the element loses focus. | - |
onKeyDown? | Handler that is called when a key is pressed. | - |
onKeyUp? | Handler that is called when a key is released. | - |
onClick? | Not 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. | - |
onPress? | Handler that is called when the press is released over the target. | - |
onPressStart? | Handler that is called when a press interaction starts. | - |
onPressEnd? | Handler that is called when a press interaction ends, either
over the target or when the pointer leaves the target. | - |
onPressChange? | Handler that is called when the press state changes. | - |
onPressUp? | Handler that is called when a press is released over the target, regardless of
whether it started on the target or not. | - |
onFocusChange? | Handler that is called when the element's focus status changes. | - |
onHoverStart? | Handler that is called when a hover interaction starts. | - |
onHoverEnd? | Handler that is called when a hover interaction ends. | - |
onHoverChange? | Handler that is called when the hover state changes. | - |
| Links |
|---|
referrerPolicy? | | - |
rel? | | - |
target? | | - |
hrefLang? | | - |
download? | | - |
ping? | | - |
routerOptions? | | - |
| Styles |
|---|
className? | | 'react-aria-Form' |
style? | | - |
| Accessibility |
|---|
id? | | - |
aria-controls? | | - |
aria-current? | | - |
aria-describedby? | | - |
aria-details? | | - |
aria-disabled? | | - |
aria-expanded? | | - |
aria-haspopup? | | - |
aria-label? | | - |
aria-labelledby? | | - |
aria-pressed? | | - |