Popover
A Popover is a page overlay triggered by a button that displays additional interactive content.
yarn add @twilio-paste/popover - or - yarn add @twilio-paste/core
import {Popover, PopoverContainer, PopoverButton} from '@twilio-paste/core/popover';
const PopoverExample: React.FC = () => {
return (
<PopoverContainer baseId="popover-example">
<PopoverButton variant="primary">Open popover</PopoverButton>
<Popover aria-label="Popover">Popover content</Popover>
</PopoverContainer>
);
};
animated RequiredRequired
If true
, animating
will be set to true
when visible
is updated.
It'll wait for stopAnimation
to be called or a CSS transition ends.
If animated
is set to a number
, stopAnimation
will be called only
after the same number of milliseconds have passed.
- Type
number | boolean
animating RequiredRequired
Whether it's animating or not.
- Type
boolean
baseId RequiredRequired
ID that will serve as a base for all the items IDs.
- Type
string
hide RequiredRequired
Changes the visible
state to false
- Type
() => void
modal RequiredRequired
Toggles Dialog's modal
state.
- Non-modal:
preventBodyScroll
doesn't work and focus is free. - Modal:
preventBodyScroll
is automatically enabled, focus is trapped within the dialog and the dialog is rendered within aPortal
by default.
- Type
boolean
place RequiredRequired
Change the placement
state.
- Type
Dispatch<SetStateAction<Placement>>
placement RequiredRequired
Actual placement
.
- Type
Placement
setAnimated RequiredRequired
Sets animated
.
- Type
Dispatch<SetStateAction<number | boolean>>
setBaseId RequiredRequired
Sets baseId
.
- Type
Dispatch<SetStateAction<string>>
setModal RequiredRequired
Sets modal
.
- Type
Dispatch<SetStateAction<boolean>>
setVisible RequiredRequired
Sets visible
.
- Type
Dispatch<SetStateAction<boolean>>
show RequiredRequired
Changes the visible
state to true
- Type
() => void
stopAnimation RequiredRequired
Stops animation. It's called automatically if there's a CSS transition.
- Type
() => void
toggle RequiredRequired
Toggles the visible
state
- Type
() => void
unstable_arrowRef RequiredRequired
The arrow element.
- Type
RefObject<HTMLElement | null>
unstable_arrowStyles RequiredRequired
Arrow styles.
- Type
CSSProperties
unstable_disclosureRef RequiredRequired
- Type
MutableRefObject<HTMLElement | null>
unstable_idCountRef RequiredRequired
- Type
MutableRefObject<number>
unstable_originalPlacement RequiredRequired
placement
passed to the hook.
- Type
Placement
unstable_popoverRef RequiredRequired
The popover element.
- Type
RefObject<HTMLElement | null>
unstable_popoverStyles RequiredRequired
Popover styles.
- Type
CSSProperties
unstable_referenceRef RequiredRequired
The reference element.
- Type
RefObject<HTMLElement | null>
unstable_update RequiredRequired
- Type
() => boolean
visible RequiredRequired
Whether it's visible or not.
- Type
boolean
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
state
- Type
PopoverStateReturn
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
animated
If true
, animating
will be set to true
when visible
is updated.
It'll wait for stopAnimation
to be called or a CSS transition ends.
If animated
is set to a number
, stopAnimation
will be called only
after the same number of milliseconds have passed.
- Type
number | boolean
baseId
ID that will serve as a base for all the items IDs.
- Type
string
gutter
Offset between the reference and the popover on the main axis. Should not be combined with unstable_offset
.
- Type
number
modal
Toggles Dialog's modal
state.
- Non-modal:
preventBodyScroll
doesn't work and focus is free. - Modal:
preventBodyScroll
is automatically enabled, focus is trapped within the dialog and the dialog is rendered within aPortal
by default.
- Type
boolean
placement
Actual placement
.
- Type
Placement
unstable_fixed
Whether or not the popover should have position
set to fixed
.
- Type
boolean
unstable_flip
Flip the popover's placement when it starts to overlap its reference element.
- Type
boolean
unstable_offset
Offset between the reference and the popover: [main axis, alt axis]. Should not be combined with gutter
.
- Type
[string | number, string | number]
unstable_preventOverflow
Prevents popover from being positioned outside the boundary.
- Type
boolean
visible
Whether it's visible or not.
- Type
boolean
aria-label RequiredRequired
Required label for this Popover component. Titles the entire popover context for screen readers.
- Type
string
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
string
- Default
'POPOVER'
i18nDismissLabel
Accessible label for the dismiss button in the Popover.
- Type
string
- Default
'Close popover'
initialFocusRef
A ref to an interactive element that recieves focus when the Popover opens.
- Type
RefObject<any>
width
- Type
| "size10" | "size20" | "size30" | "size40" | "size50" | (WidthOptions | null)[] | { [x: string]: WidthOptions | undefined [x: number]: WidthOptions | undefined }
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
about
- Type
string
accessKey
- Type
string
aria-activedescendant
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
- Type
string
aria-atomic
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
- Type
Booleanish
aria-autocomplete
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
- Type
"list" | "none" | "inline" | "both"
aria-busy
Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
- Type
Booleanish
aria-checked
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
- Type
boolean | "true" | "false" | "mixed"
aria-colcount
Defines the total number of columns in a table, grid, or treegrid.
- Type
number
aria-colindex
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
- Type
number
aria-colspan
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
- Type
number
aria-controls
Identifies the element (or elements) whose contents or presence are controlled by the current element.
- Type
string
aria-current
Indicates the element that represents the current item within a container or set of related elements.
- Type
| boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"
aria-describedby
Identifies the element (or elements) that describes the object.
- Type
string
aria-details
Identifies the element that provides a detailed, extended description for the object.
- Type
string
aria-disabled
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
- Type
Booleanish
aria-dropeffect
Indicates what functions can be performed when a dragged object is released on the drop target.
- Type
"link" | "none" | "copy" | "execute" | "move" | "popup"
aria-errormessage
Identifies the element that provides an error message for the object.
- Type
string
aria-expanded
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
- Type
Booleanish
aria-flowto
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
- Type
string
aria-grabbed
Indicates an element's "grabbed" state in a drag-and-drop operation.
- Type
Booleanish
aria-haspopup
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
- Type
| boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"
aria-hidden
Indicates whether the element is exposed to an accessibility API.
- Type
Booleanish
aria-invalid
Indicates the entered value does not conform to the format expected by the application.
- Type
boolean | "true" | "false" | "grammar" | "spelling"
aria-keyshortcuts
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
- Type
string
aria-labelledby
Identifies the element (or elements) that labels the current element.
- Type
string
aria-level
Defines the hierarchical level of an element within a structure.
- Type
number
aria-live
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
- Type
"off" | "assertive" | "polite"
aria-modal
Indicates whether an element is modal when displayed.
- Type
Booleanish
aria-multiline
Indicates whether a text box accepts multiple lines of input or only a single line.
- Type
Booleanish
aria-multiselectable
Indicates that the user may select more than one item from the current selectable descendants.
- Type
Booleanish
aria-orientation
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
- Type
"horizontal" | "vertical"
aria-owns
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
- Type
string
aria-placeholder
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
- Type
string
aria-posinset
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Type
number
aria-pressed
Indicates the current "pressed" state of toggle buttons.
- Type
boolean | "true" | "false" | "mixed"
aria-readonly
Indicates that the element is not editable, but is otherwise operable.
- Type
Booleanish
aria-relevant
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
- Type
| "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"
aria-required
Indicates that user input is required on the element before a form may be submitted.
- Type
Booleanish
aria-roledescription
Defines a human-readable, author-localized description for the role of an element.
- Type
string
aria-rowcount
Defines the total number of rows in a table, grid, or treegrid.
- Type
number
aria-rowindex
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
- Type
number
aria-rowspan
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
- Type
number
aria-selected
Indicates the current "selected" state of various widgets.
- Type
Booleanish
aria-setsize
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Type
number
aria-sort
Indicates if items in a table or grid are sorted in ascending or descending order.
- Type
"none" | "ascending" | "descending" | "other"
aria-valuemax
Defines the maximum allowed value for a range widget.
- Type
number
aria-valuemin
Defines the minimum allowed value for a range widget.
- Type
number
aria-valuenow
Defines the current value for a range widget.
- Type
number
aria-valuetext
Defines the human readable text alternative of aria-valuenow for a range widget.
- Type
string
autoCapitalize
- Type
string
autoCorrect
- Type
string
autoSave
- Type
string
contentEditable
- Type
Booleanish | "inherit"
contextMenu
- Type
string
dangerouslySetInnerHTML
- Type
{ __html: string }
datatype
- Type
string
defaultChecked
- Type
boolean
defaultValue
- Type
string | number | readonly string[]
dir
- Type
string
draggable
- Type
Booleanish
hidden
- Type
boolean
id
- Type
string
inlist
- Type
any
inputMode
Hints at the type of data that might be entered by the user while editing the element or its contents
- Type
| "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"
is
Specify that a standard HTML element should behave like a defined custom built-in element
- Type
string
itemID
- Type
string
itemProp
- Type
string
itemRef
- Type
string
itemScope
- Type
boolean
itemType
- Type
string
key
- Type
Key
lang
- Type
string
nonce
- Type
string
onAbort
- Type
ReactEventHandler<HTMLDivElement>
onAbortCapture
- Type
ReactEventHandler<HTMLDivElement>
onAnimationEnd
- Type
AnimationEventHandler<HTMLDivElement>
onAnimationEndCapture
- Type
AnimationEventHandler<HTMLDivElement>
onAnimationIteration
- Type
AnimationEventHandler<HTMLDivElement>
onAnimationIterationCapture
- Type
AnimationEventHandler<HTMLDivElement>
onAnimationStart
- Type
AnimationEventHandler<HTMLDivElement>
onAnimationStartCapture
- Type
AnimationEventHandler<HTMLDivElement>
onAuxClick
- Type
MouseEventHandler<HTMLDivElement>
onAuxClickCapture
- Type
MouseEventHandler<HTMLDivElement>
onBeforeInput
- Type
FormEventHandler<HTMLDivElement>
onBeforeInputCapture
- Type
FormEventHandler<HTMLDivElement>
onBlur
- Type
FocusEventHandler<HTMLDivElement>
onBlurCapture
- Type
FocusEventHandler<HTMLDivElement>
onCanPlay
- Type
ReactEventHandler<HTMLDivElement>
onCanPlayCapture
- Type
ReactEventHandler<HTMLDivElement>
onCanPlayThrough
- Type
ReactEventHandler<HTMLDivElement>
onCanPlayThroughCapture
- Type
ReactEventHandler<HTMLDivElement>
onChange
- Type
FormEventHandler<HTMLDivElement>
onChangeCapture
- Type
FormEventHandler<HTMLDivElement>
onClick
- Type
MouseEventHandler<HTMLDivElement>
onClickCapture
- Type
MouseEventHandler<HTMLDivElement>
onCompositionEnd
- Type
CompositionEventHandler<HTMLDivElement>
onCompositionEndCapture
- Type
CompositionEventHandler<HTMLDivElement>
onCompositionStart
- Type
CompositionEventHandler<HTMLDivElement>
onCompositionStartCapture
- Type
CompositionEventHandler<HTMLDivElement>
onCompositionUpdate
- Type
CompositionEventHandler<HTMLDivElement>
onCompositionUpdateCapture
- Type
CompositionEventHandler<HTMLDivElement>
onContextMenu
- Type
MouseEventHandler<HTMLDivElement>
onContextMenuCapture
- Type
MouseEventHandler<HTMLDivElement>
onCopy
- Type
ClipboardEventHandler<HTMLDivElement>
onCopyCapture
- Type
ClipboardEventHandler<HTMLDivElement>
onCut
- Type
ClipboardEventHandler<HTMLDivElement>
onCutCapture
- Type
ClipboardEventHandler<HTMLDivElement>
onDoubleClick
- Type
MouseEventHandler<HTMLDivElement>
onDoubleClickCapture
- Type
MouseEventHandler<HTMLDivElement>
onDrag
- Type
DragEventHandler<HTMLDivElement>
onDragCapture
- Type
DragEventHandler<HTMLDivElement>
onDragEnd
- Type
DragEventHandler<HTMLDivElement>
onDragEndCapture
- Type
DragEventHandler<HTMLDivElement>
onDragEnter
- Type
DragEventHandler<HTMLDivElement>
onDragEnterCapture
- Type
DragEventHandler<HTMLDivElement>
onDragExit
- Type
DragEventHandler<HTMLDivElement>
onDragExitCapture
- Type
DragEventHandler<HTMLDivElement>
onDragLeave
- Type
DragEventHandler<HTMLDivElement>
onDragLeaveCapture
- Type
DragEventHandler<HTMLDivElement>
onDragOver
- Type
DragEventHandler<HTMLDivElement>
onDragOverCapture
- Type
DragEventHandler<HTMLDivElement>
onDragStart
- Type
DragEventHandler<HTMLDivElement>
onDragStartCapture
- Type
DragEventHandler<HTMLDivElement>
onDrop
- Type
DragEventHandler<HTMLDivElement>
onDropCapture
- Type
DragEventHandler<HTMLDivElement>
onDurationChange
- Type
ReactEventHandler<HTMLDivElement>
onDurationChangeCapture
- Type
ReactEventHandler<HTMLDivElement>
onEmptied
- Type
ReactEventHandler<HTMLDivElement>
onEmptiedCapture
- Type
ReactEventHandler<HTMLDivElement>
onEncrypted
- Type
ReactEventHandler<HTMLDivElement>
onEncryptedCapture
- Type
ReactEventHandler<HTMLDivElement>
onEnded
- Type
ReactEventHandler<HTMLDivElement>
onEndedCapture
- Type
ReactEventHandler<HTMLDivElement>
onError
- Type
ReactEventHandler<HTMLDivElement>
onErrorCapture
- Type
ReactEventHandler<HTMLDivElement>
onFocus
- Type
FocusEventHandler<HTMLDivElement>
onFocusCapture
- Type
FocusEventHandler<HTMLDivElement>
onGotPointerCapture
- Type
PointerEventHandler<HTMLDivElement>
onGotPointerCaptureCapture
- Type
PointerEventHandler<HTMLDivElement>
onInput
- Type
FormEventHandler<HTMLDivElement>
onInputCapture
- Type
FormEventHandler<HTMLDivElement>
onInvalid
- Type
FormEventHandler<HTMLDivElement>
onInvalidCapture
- Type
FormEventHandler<HTMLDivElement>
onKeyDown
- Type
KeyboardEventHandler<HTMLDivElement>
onKeyDownCapture
- Type
KeyboardEventHandler<HTMLDivElement>
onKeyPress
- Type
KeyboardEventHandler<HTMLDivElement>
onKeyPressCapture
- Type
KeyboardEventHandler<HTMLDivElement>
onKeyUp
- Type
KeyboardEventHandler<HTMLDivElement>
onKeyUpCapture
- Type
KeyboardEventHandler<HTMLDivElement>
onLoad
- Type
ReactEventHandler<HTMLDivElement>
onLoadCapture
- Type
ReactEventHandler<HTMLDivElement>
onLoadedData
- Type
ReactEventHandler<HTMLDivElement>
onLoadedDataCapture
- Type
ReactEventHandler<HTMLDivElement>
onLoadedMetadata
- Type
ReactEventHandler<HTMLDivElement>
onLoadedMetadataCapture
- Type
ReactEventHandler<HTMLDivElement>
onLoadStart
- Type
ReactEventHandler<HTMLDivElement>
onLoadStartCapture
- Type
ReactEventHandler<HTMLDivElement>
onLostPointerCapture
- Type
PointerEventHandler<HTMLDivElement>
onLostPointerCaptureCapture
- Type
PointerEventHandler<HTMLDivElement>
onMouseDown
- Type
MouseEventHandler<HTMLDivElement>
onMouseDownCapture
- Type
MouseEventHandler<HTMLDivElement>
onMouseEnter
- Type
MouseEventHandler<HTMLDivElement>
onMouseLeave
- Type
MouseEventHandler<HTMLDivElement>
onMouseMove
- Type
MouseEventHandler<HTMLDivElement>
onMouseMoveCapture
- Type
MouseEventHandler<HTMLDivElement>
onMouseOut
- Type
MouseEventHandler<HTMLDivElement>
onMouseOutCapture
- Type
MouseEventHandler<HTMLDivElement>
onMouseOver
- Type
MouseEventHandler<HTMLDivElement>
onMouseOverCapture
- Type
MouseEventHandler<HTMLDivElement>
onMouseUp
- Type
MouseEventHandler<HTMLDivElement>
onMouseUpCapture
- Type
MouseEventHandler<HTMLDivElement>
onPaste
- Type
ClipboardEventHandler<HTMLDivElement>
onPasteCapture
- Type
ClipboardEventHandler<HTMLDivElement>
onPause
- Type
ReactEventHandler<HTMLDivElement>
onPauseCapture
- Type
ReactEventHandler<HTMLDivElement>
onPlay
- Type
ReactEventHandler<HTMLDivElement>
onPlayCapture
- Type
ReactEventHandler<HTMLDivElement>
onPlaying
- Type
ReactEventHandler<HTMLDivElement>
onPlayingCapture
- Type
ReactEventHandler<HTMLDivElement>
onPointerCancel
- Type
PointerEventHandler<HTMLDivElement>
onPointerCancelCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerDown
- Type
PointerEventHandler<HTMLDivElement>
onPointerDownCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerEnter
- Type
PointerEventHandler<HTMLDivElement>
onPointerEnterCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerLeave
- Type
PointerEventHandler<HTMLDivElement>
onPointerLeaveCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerMove
- Type
PointerEventHandler<HTMLDivElement>
onPointerMoveCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerOut
- Type
PointerEventHandler<HTMLDivElement>
onPointerOutCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerOver
- Type
PointerEventHandler<HTMLDivElement>
onPointerOverCapture
- Type
PointerEventHandler<HTMLDivElement>
onPointerUp
- Type
PointerEventHandler<HTMLDivElement>
onPointerUpCapture
- Type
PointerEventHandler<HTMLDivElement>
onProgress
- Type
ReactEventHandler<HTMLDivElement>
onProgressCapture
- Type
ReactEventHandler<HTMLDivElement>
onRateChange
- Type
ReactEventHandler<HTMLDivElement>
onRateChangeCapture
- Type
ReactEventHandler<HTMLDivElement>
onReset
- Type
FormEventHandler<HTMLDivElement>
onResetCapture
- Type
FormEventHandler<HTMLDivElement>
onResize
- Type
ReactEventHandler<HTMLDivElement>
onResizeCapture
- Type
ReactEventHandler<HTMLDivElement>
onScroll
- Type
UIEventHandler<HTMLDivElement>
onScrollCapture
- Type
UIEventHandler<HTMLDivElement>
onSeeked
- Type
ReactEventHandler<HTMLDivElement>
onSeekedCapture
- Type
ReactEventHandler<HTMLDivElement>
onSeeking
- Type
ReactEventHandler<HTMLDivElement>
onSeekingCapture
- Type
ReactEventHandler<HTMLDivElement>
onSelect
- Type
ReactEventHandler<HTMLDivElement>
onSelectCapture
- Type
ReactEventHandler<HTMLDivElement>
onStalled
- Type
ReactEventHandler<HTMLDivElement>
onStalledCapture
- Type
ReactEventHandler<HTMLDivElement>
onSubmit
- Type
FormEventHandler<HTMLDivElement>
onSubmitCapture
- Type
FormEventHandler<HTMLDivElement>
onSuspend
- Type
ReactEventHandler<HTMLDivElement>
onSuspendCapture
- Type
ReactEventHandler<HTMLDivElement>
onTimeUpdate
- Type
ReactEventHandler<HTMLDivElement>
onTimeUpdateCapture
- Type
ReactEventHandler<HTMLDivElement>
onTouchCancel
- Type
TouchEventHandler<HTMLDivElement>
onTouchCancelCapture
- Type
TouchEventHandler<HTMLDivElement>
onTouchEnd
- Type
TouchEventHandler<HTMLDivElement>
onTouchEndCapture
- Type
TouchEventHandler<HTMLDivElement>
onTouchMove
- Type
TouchEventHandler<HTMLDivElement>
onTouchMoveCapture
- Type
TouchEventHandler<HTMLDivElement>
onTouchStart
- Type
TouchEventHandler<HTMLDivElement>
onTouchStartCapture
- Type
TouchEventHandler<HTMLDivElement>
onTransitionEnd
- Type
TransitionEventHandler<HTMLDivElement>
onTransitionEndCapture
- Type
TransitionEventHandler<HTMLDivElement>
onVolumeChange
- Type
ReactEventHandler<HTMLDivElement>
onVolumeChangeCapture
- Type
ReactEventHandler<HTMLDivElement>
onWaiting
- Type
ReactEventHandler<HTMLDivElement>
onWaitingCapture
- Type
ReactEventHandler<HTMLDivElement>
onWheel
- Type
WheelEventHandler<HTMLDivElement>
onWheelCapture
- Type
WheelEventHandler<HTMLDivElement>
placeholder
- Type
string
prefix
- Type
string
property
- Type
string
radioGroup
- Type
string
resource
- Type
string
results
- Type
number
role
- Type
AriaRole
security
- Type
string
slot
- Type
string
spellCheck
- Type
Booleanish
suppressContentEditableWarning
- Type
boolean
suppressHydrationWarning
- Type
boolean
tabIndex
- Type
number
title
- Type
string
translate
- Type
"yes" | "no"
typeof
- Type
string
unselectable
- Type
"on" | "off"
vocab
- Type
string
variant RequiredRequired
- Type
| "link" | "reset" | "primary" | "primary_icon" | "secondary" | "secondary_icon" | "destructive" | "destructive_icon" | "destructive_link" | "destructive_secondary" | "inverse_link" | "inverse"
- Default
'primary'
disabled
Prevent actions from firing on this Button
- Type
boolean
element
Overrides the default element name to apply unique styles with the Customization Provider.
Overrides the default element name to apply unique styles with the Customization Provider
- Type
string
- Default
'BUTTON'
fullWidth
Sets the Button width to 100% of the parent container.
- Type
boolean
href
A URL to route to. Must use as="a" for this prop to work.
- Type
string
- Default
null
i18nExternalLinkLabel
Title for showExternal icon
- Type
string
- Default
'(link takes you to an external page)'
id
- Type
string
loading
Prevent actions and show a loading spinner
- Type
boolean
pressed
Sets the aria-pressed attribute. Must be used with 'secondary' or 'secondary_icon' variants.
- Type
boolean
size
- Type
ButtonSizes
- Default
'default'
tabIndex
- Type
ButtonTabIndexes
target
- Type
string
toggle
- Type
() => void
type
Use at least one submit
button per <form>
. Outside of forms use button
(default).
- Type
ButtonTypes
- Default
'button'
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
about
- Type
string
accessKey
- Type
string
aria-activedescendant
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
- Type
string
aria-atomic
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
- Type
Booleanish
aria-autocomplete
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
- Type
"list" | "none" | "inline" | "both"
aria-busy
Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
- Type
Booleanish
aria-checked
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
- Type
boolean | "true" | "false" | "mixed"
aria-colcount
Defines the total number of columns in a table, grid, or treegrid.
- Type
number
aria-colindex
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
- Type
number
aria-colspan
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
- Type
number
aria-controls
Identifies the element (or elements) whose contents or presence are controlled by the current element.
- Type
string
aria-current
Indicates the element that represents the current item within a container or set of related elements.
- Type
| boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"
aria-describedby
Identifies the element (or elements) that describes the object.
- Type
string
aria-details
Identifies the element that provides a detailed, extended description for the object.
- Type
string
aria-disabled
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
- Type
Booleanish
aria-dropeffect
Indicates what functions can be performed when a dragged object is released on the drop target.
- Type
"link" | "none" | "copy" | "execute" | "move" | "popup"
aria-errormessage
Identifies the element that provides an error message for the object.
- Type
string
aria-expanded
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
- Type
Booleanish
aria-flowto
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
- Type
string
aria-grabbed
Indicates an element's "grabbed" state in a drag-and-drop operation.
- Type
Booleanish
aria-haspopup
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
- Type
| boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"
aria-hidden
Indicates whether the element is exposed to an accessibility API.
- Type
Booleanish
aria-invalid
Indicates the entered value does not conform to the format expected by the application.
- Type
boolean | "true" | "false" | "grammar" | "spelling"
aria-keyshortcuts
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
- Type
string
aria-label
Defines a string value that labels the current element.
- Type
string
aria-labelledby
Identifies the element (or elements) that labels the current element.
- Type
string
aria-level
Defines the hierarchical level of an element within a structure.
- Type
number
aria-live
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
- Type
"off" | "assertive" | "polite"
aria-modal
Indicates whether an element is modal when displayed.
- Type
Booleanish
aria-multiline
Indicates whether a text box accepts multiple lines of input or only a single line.
- Type
Booleanish
aria-multiselectable
Indicates that the user may select more than one item from the current selectable descendants.
- Type
Booleanish
aria-orientation
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
- Type
"horizontal" | "vertical"
aria-owns
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
- Type
string
aria-placeholder
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
- Type
string
aria-posinset
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Type
number
aria-pressed
Indicates the current "pressed" state of toggle buttons.
- Type
boolean | "true" | "false" | "mixed"
aria-readonly
Indicates that the element is not editable, but is otherwise operable.
- Type
Booleanish
aria-relevant
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
- Type
| "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"
aria-required
Indicates that user input is required on the element before a form may be submitted.
- Type
Booleanish
aria-roledescription
Defines a human-readable, author-localized description for the role of an element.
- Type
string
aria-rowcount
Defines the total number of rows in a table, grid, or treegrid.
- Type
number
aria-rowindex
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
- Type
number
aria-rowspan
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
- Type
number
aria-selected
Indicates the current "selected" state of various widgets.
- Type
Booleanish
aria-setsize
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Type
number
aria-sort
Indicates if items in a table or grid are sorted in ascending or descending order.
- Type
"none" | "ascending" | "descending" | "other"
aria-valuemax
Defines the maximum allowed value for a range widget.
- Type
number
aria-valuemin
Defines the minimum allowed value for a range widget.
- Type
number
aria-valuenow
Defines the current value for a range widget.
- Type
number
aria-valuetext
Defines the human readable text alternative of aria-valuenow for a range widget.
- Type
string
autoCapitalize
- Type
string
autoCorrect
- Type
string
autoFocus
- Type
boolean
autoSave
- Type
string
contentEditable
- Type
Booleanish | "inherit"
contextMenu
- Type
string
dangerouslySetInnerHTML
- Type
{ __html: string }
datatype
- Type
string
defaultChecked
- Type
boolean
defaultValue
- Type
string | number | readonly string[]
dir
- Type
string
draggable
- Type
Booleanish
form
- Type
string
formAction
- Type
string
formEncType
- Type
string
formMethod
- Type
string
formNoValidate
- Type
boolean
formTarget
- Type
string
hidden
- Type
boolean
inlist
- Type
any
inputMode
Hints at the type of data that might be entered by the user while editing the element or its contents
- Type
| "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"
is
Specify that a standard HTML element should behave like a defined custom built-in element
- Type
string
itemID
- Type
string
itemProp
- Type
string
itemRef
- Type
string
itemScope
- Type
boolean
itemType
- Type
string
key
- Type
Key
lang
- Type
string
name
- Type
string
nonce
- Type
string
onAbort
- Type
ReactEventHandler<HTMLButtonElement>
onAbortCapture
- Type
ReactEventHandler<HTMLButtonElement>
onAnimationEnd
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationEndCapture
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationIteration
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationIterationCapture
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationStart
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationStartCapture
- Type
AnimationEventHandler<HTMLButtonElement>
onAuxClick
- Type
MouseEventHandler<HTMLButtonElement>
onAuxClickCapture
- Type
MouseEventHandler<HTMLButtonElement>
onBeforeInput
- Type
FormEventHandler<HTMLButtonElement>
onBeforeInputCapture
- Type
FormEventHandler<HTMLButtonElement>
onBlur
- Type
FocusEventHandler<HTMLButtonElement>
onBlurCapture
- Type
FocusEventHandler<HTMLButtonElement>
onCanPlay
- Type
ReactEventHandler<HTMLButtonElement>
onCanPlayCapture
- Type
ReactEventHandler<HTMLButtonElement>
onCanPlayThrough
- Type
ReactEventHandler<HTMLButtonElement>
onCanPlayThroughCapture
- Type
ReactEventHandler<HTMLButtonElement>
onChange
- Type
FormEventHandler<HTMLButtonElement>
onChangeCapture
- Type
FormEventHandler<HTMLButtonElement>
onClick
- Type
MouseEventHandler<HTMLButtonElement>
onClickCapture
- Type
MouseEventHandler<HTMLButtonElement>
onCompositionEnd
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionEndCapture
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionStart
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionStartCapture
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionUpdate
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionUpdateCapture
- Type
CompositionEventHandler<HTMLButtonElement>
onContextMenu
- Type
MouseEventHandler<HTMLButtonElement>
onContextMenuCapture
- Type
MouseEventHandler<HTMLButtonElement>
onCopy
- Type
ClipboardEventHandler<HTMLButtonElement>
onCopyCapture
- Type
ClipboardEventHandler<HTMLButtonElement>
onCut
- Type
ClipboardEventHandler<HTMLButtonElement>
onCutCapture
- Type
ClipboardEventHandler<HTMLButtonElement>
onDoubleClick
- Type
MouseEventHandler<HTMLButtonElement>
onDoubleClickCapture
- Type
MouseEventHandler<HTMLButtonElement>
onDrag
- Type
DragEventHandler<HTMLButtonElement>
onDragCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragEnd
- Type
DragEventHandler<HTMLButtonElement>
onDragEndCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragEnter
- Type
DragEventHandler<HTMLButtonElement>
onDragEnterCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragExit
- Type
DragEventHandler<HTMLButtonElement>
onDragExitCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragLeave
- Type
DragEventHandler<HTMLButtonElement>
onDragLeaveCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragOver
- Type
DragEventHandler<HTMLButtonElement>
onDragOverCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragStart
- Type
DragEventHandler<HTMLButtonElement>
onDragStartCapture
- Type
DragEventHandler<HTMLButtonElement>
onDrop
- Type
DragEventHandler<HTMLButtonElement>
onDropCapture
- Type
DragEventHandler<HTMLButtonElement>
onDurationChange
- Type
ReactEventHandler<HTMLButtonElement>
onDurationChangeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onEmptied
- Type
ReactEventHandler<HTMLButtonElement>
onEmptiedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onEncrypted
- Type
ReactEventHandler<HTMLButtonElement>
onEncryptedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onEnded
- Type
ReactEventHandler<HTMLButtonElement>
onEndedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onError
- Type
ReactEventHandler<HTMLButtonElement>
onErrorCapture
- Type
ReactEventHandler<HTMLButtonElement>
onFocus
- Type
FocusEventHandler<HTMLButtonElement>
onFocusCapture
- Type
FocusEventHandler<HTMLButtonElement>
onGotPointerCapture
- Type
PointerEventHandler<HTMLButtonElement>
onGotPointerCaptureCapture
- Type
PointerEventHandler<HTMLButtonElement>
onInput
- Type
FormEventHandler<HTMLButtonElement>
onInputCapture
- Type
FormEventHandler<HTMLButtonElement>
onInvalid
- Type
FormEventHandler<HTMLButtonElement>
onInvalidCapture
- Type
FormEventHandler<HTMLButtonElement>
onKeyDown
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyDownCapture
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyPress
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyPressCapture
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyUp
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyUpCapture
- Type
KeyboardEventHandler<HTMLButtonElement>
onLoad
- Type
ReactEventHandler<HTMLButtonElement>
onLoadCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedData
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedDataCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedMetadata
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedMetadataCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLoadStart
- Type
ReactEventHandler<HTMLButtonElement>
onLoadStartCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLostPointerCapture
- Type
PointerEventHandler<HTMLButtonElement>
onLostPointerCaptureCapture
- Type
PointerEventHandler<HTMLButtonElement>
onMouseDown
- Type
MouseEventHandler<HTMLButtonElement>
onMouseDownCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseEnter
- Type
MouseEventHandler<HTMLButtonElement>
onMouseLeave
- Type
MouseEventHandler<HTMLButtonElement>
onMouseMove
- Type
MouseEventHandler<HTMLButtonElement>
onMouseMoveCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOut
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOutCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOver
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOverCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseUp
- Type
MouseEventHandler<HTMLButtonElement>
onMouseUpCapture
- Type
MouseEventHandler<HTMLButtonElement>
onPaste
- Type
ClipboardEventHandler<HTMLButtonElement>
onPasteCapture
- Type
ClipboardEventHandler<HTMLButtonElement>
onPause
- Type
ReactEventHandler<HTMLButtonElement>
onPauseCapture
- Type
ReactEventHandler<HTMLButtonElement>
onPlay
- Type
ReactEventHandler<HTMLButtonElement>
onPlayCapture
- Type
ReactEventHandler<HTMLButtonElement>
onPlaying
- Type
ReactEventHandler<HTMLButtonElement>
onPlayingCapture
- Type
ReactEventHandler<HTMLButtonElement>
onPointerCancel
- Type
PointerEventHandler<HTMLButtonElement>
onPointerCancelCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerDown
- Type
PointerEventHandler<HTMLButtonElement>
onPointerDownCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerEnter
- Type
PointerEventHandler<HTMLButtonElement>
onPointerEnterCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerLeave
- Type
PointerEventHandler<HTMLButtonElement>
onPointerLeaveCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerMove
- Type
PointerEventHandler<HTMLButtonElement>
onPointerMoveCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOut
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOutCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOver
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOverCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerUp
- Type
PointerEventHandler<HTMLButtonElement>
onPointerUpCapture
- Type
PointerEventHandler<HTMLButtonElement>
onProgress
- Type
ReactEventHandler<HTMLButtonElement>
onProgressCapture
- Type
ReactEventHandler<HTMLButtonElement>
onRateChange
- Type
ReactEventHandler<HTMLButtonElement>
onRateChangeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onReset
- Type
FormEventHandler<HTMLButtonElement>
onResetCapture
- Type
FormEventHandler<HTMLButtonElement>
onResize
- Type
ReactEventHandler<HTMLButtonElement>
onResizeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onScroll
- Type
UIEventHandler<HTMLButtonElement>
onScrollCapture
- Type
UIEventHandler<HTMLButtonElement>
onSeeked
- Type
ReactEventHandler<HTMLButtonElement>
onSeekedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onSeeking
- Type
ReactEventHandler<HTMLButtonElement>
onSeekingCapture
- Type
ReactEventHandler<HTMLButtonElement>
onSelect
- Type
ReactEventHandler<HTMLButtonElement>
onSelectCapture
- Type
ReactEventHandler<HTMLButtonElement>
onStalled
- Type
ReactEventHandler<HTMLButtonElement>
onStalledCapture
- Type
ReactEventHandler<HTMLButtonElement>
onSubmit
- Type
FormEventHandler<HTMLButtonElement>
onSubmitCapture
- Type
FormEventHandler<HTMLButtonElement>
onSuspend
- Type
ReactEventHandler<HTMLButtonElement>
onSuspendCapture
- Type
ReactEventHandler<HTMLButtonElement>
onTimeUpdate
- Type
ReactEventHandler<HTMLButtonElement>
onTimeUpdateCapture
- Type
ReactEventHandler<HTMLButtonElement>
onTouchCancel
- Type
TouchEventHandler<HTMLButtonElement>
onTouchCancelCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTouchEnd
- Type
TouchEventHandler<HTMLButtonElement>
onTouchEndCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTouchMove
- Type
TouchEventHandler<HTMLButtonElement>
onTouchMoveCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTouchStart
- Type
TouchEventHandler<HTMLButtonElement>
onTouchStartCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTransitionEnd
- Type
TransitionEventHandler<HTMLButtonElement>
onTransitionEndCapture
- Type
TransitionEventHandler<HTMLButtonElement>
onVolumeChange
- Type
ReactEventHandler<HTMLButtonElement>
onVolumeChangeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onWaiting
- Type
ReactEventHandler<HTMLButtonElement>
onWaitingCapture
- Type
ReactEventHandler<HTMLButtonElement>
onWheel
- Type
WheelEventHandler<HTMLButtonElement>
onWheelCapture
- Type
WheelEventHandler<HTMLButtonElement>
placeholder
- Type
string
prefix
- Type
string
property
- Type
string
radioGroup
- Type
string
resource
- Type
string
results
- Type
number
role
- Type
AriaRole
security
- Type
string
slot
- Type
string
spellCheck
- Type
Booleanish
suppressContentEditableWarning
- Type
boolean
suppressHydrationWarning
- Type
boolean
title
- Type
string
translate
- Type
"yes" | "no"
typeof
- Type
string
unselectable
- Type
"on" | "off"
value
- Type
string | number | readonly string[]
vocab
- Type
string
variant RequiredRequired
- Type
| "default" | "neutral" | "warning" | "error" | "success" | "new" | "subaccount" | "decorative10" | "decorative20" | "decorative30" | "decorative40" | "neutral_counter" | "error_counter" | "info"
- Default
null
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
string
- Default
BADGE
href
- Type
never
id
- Type
string
onClick
- Type
MouseEventHandler<HTMLButtonElement>
size
- Type
BadgeSizes
- Default
default
toggle
- Type
() => void
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
about
- Type
string
accessKey
- Type
string
aria-activedescendant
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
- Type
string
aria-atomic
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
- Type
Booleanish
aria-autocomplete
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
- Type
"list" | "none" | "inline" | "both"
aria-busy
Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
- Type
Booleanish
aria-checked
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
- Type
boolean | "true" | "false" | "mixed"
aria-colcount
Defines the total number of columns in a table, grid, or treegrid.
- Type
number
aria-colindex
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
- Type
number
aria-colspan
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
- Type
number
aria-controls
Identifies the element (or elements) whose contents or presence are controlled by the current element.
- Type
string
aria-current
Indicates the element that represents the current item within a container or set of related elements.
- Type
| boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"
aria-describedby
Identifies the element (or elements) that describes the object.
- Type
string
aria-details
Identifies the element that provides a detailed, extended description for the object.
- Type
string
aria-disabled
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
- Type
Booleanish
aria-dropeffect
Indicates what functions can be performed when a dragged object is released on the drop target.
- Type
"link" | "none" | "copy" | "execute" | "move" | "popup"
aria-errormessage
Identifies the element that provides an error message for the object.
- Type
string
aria-expanded
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
- Type
Booleanish
aria-flowto
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
- Type
string
aria-grabbed
Indicates an element's "grabbed" state in a drag-and-drop operation.
- Type
Booleanish
aria-haspopup
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
- Type
| boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"
aria-hidden
Indicates whether the element is exposed to an accessibility API.
- Type
Booleanish
aria-invalid
Indicates the entered value does not conform to the format expected by the application.
- Type
boolean | "true" | "false" | "grammar" | "spelling"
aria-keyshortcuts
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
- Type
string
aria-label
Defines a string value that labels the current element.
- Type
string
aria-labelledby
Identifies the element (or elements) that labels the current element.
- Type
string
aria-level
Defines the hierarchical level of an element within a structure.
- Type
number
aria-live
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
- Type
"off" | "assertive" | "polite"
aria-modal
Indicates whether an element is modal when displayed.
- Type
Booleanish
aria-multiline
Indicates whether a text box accepts multiple lines of input or only a single line.
- Type
Booleanish
aria-multiselectable
Indicates that the user may select more than one item from the current selectable descendants.
- Type
Booleanish
aria-orientation
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
- Type
"horizontal" | "vertical"
aria-owns
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
- Type
string
aria-placeholder
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
- Type
string
aria-posinset
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Type
number
aria-pressed
Indicates the current "pressed" state of toggle buttons.
- Type
boolean | "true" | "false" | "mixed"
aria-readonly
Indicates that the element is not editable, but is otherwise operable.
- Type
Booleanish
aria-relevant
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
- Type
| "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"
aria-required
Indicates that user input is required on the element before a form may be submitted.
- Type
Booleanish
aria-roledescription
Defines a human-readable, author-localized description for the role of an element.
- Type
string
aria-rowcount
Defines the total number of rows in a table, grid, or treegrid.
- Type
number
aria-rowindex
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
- Type
number
aria-rowspan
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
- Type
number
aria-selected
Indicates the current "selected" state of various widgets.
- Type
Booleanish
aria-setsize
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Type
number
aria-sort
Indicates if items in a table or grid are sorted in ascending or descending order.
- Type
"none" | "ascending" | "descending" | "other"
aria-valuemax
Defines the maximum allowed value for a range widget.
- Type
number
aria-valuemin
Defines the minimum allowed value for a range widget.
- Type
number
aria-valuenow
Defines the current value for a range widget.
- Type
number
aria-valuetext
Defines the human readable text alternative of aria-valuenow for a range widget.
- Type
string
autoCapitalize
- Type
string
autoCorrect
- Type
string
autoFocus
- Type
boolean
autoSave
- Type
string
contentEditable
- Type
Booleanish | "inherit"
contextMenu
- Type
string
dangerouslySetInnerHTML
- Type
{ __html: string }
datatype
- Type
string
defaultChecked
- Type
boolean
defaultValue
- Type
string | number | readonly string[]
dir
- Type
string
disabled
- Type
boolean
draggable
- Type
Booleanish
form
- Type
string
formAction
- Type
string
formEncType
- Type
string
formMethod
- Type
string
formNoValidate
- Type
boolean
formTarget
- Type
string
hidden
- Type
boolean
inlist
- Type
any
inputMode
Hints at the type of data that might be entered by the user while editing the element or its contents
- Type
| "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"
is
Specify that a standard HTML element should behave like a defined custom built-in element
- Type
string
itemID
- Type
string
itemProp
- Type
string
itemRef
- Type
string
itemScope
- Type
boolean
itemType
- Type
string
key
- Type
Key
lang
- Type
string
name
- Type
string
nonce
- Type
string
onAbort
- Type
ReactEventHandler<HTMLButtonElement>
onAbortCapture
- Type
ReactEventHandler<HTMLButtonElement>
onAnimationEnd
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationEndCapture
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationIteration
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationIterationCapture
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationStart
- Type
AnimationEventHandler<HTMLButtonElement>
onAnimationStartCapture
- Type
AnimationEventHandler<HTMLButtonElement>
onAuxClick
- Type
MouseEventHandler<HTMLButtonElement>
onAuxClickCapture
- Type
MouseEventHandler<HTMLButtonElement>
onBeforeInput
- Type
FormEventHandler<HTMLButtonElement>
onBeforeInputCapture
- Type
FormEventHandler<HTMLButtonElement>
onBlur
- Type
FocusEventHandler<HTMLButtonElement>
onBlurCapture
- Type
FocusEventHandler<HTMLButtonElement>
onCanPlay
- Type
ReactEventHandler<HTMLButtonElement>
onCanPlayCapture
- Type
ReactEventHandler<HTMLButtonElement>
onCanPlayThrough
- Type
ReactEventHandler<HTMLButtonElement>
onCanPlayThroughCapture
- Type
ReactEventHandler<HTMLButtonElement>
onChange
- Type
FormEventHandler<HTMLButtonElement>
onChangeCapture
- Type
FormEventHandler<HTMLButtonElement>
onClickCapture
- Type
MouseEventHandler<HTMLButtonElement>
onCompositionEnd
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionEndCapture
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionStart
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionStartCapture
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionUpdate
- Type
CompositionEventHandler<HTMLButtonElement>
onCompositionUpdateCapture
- Type
CompositionEventHandler<HTMLButtonElement>
onContextMenu
- Type
MouseEventHandler<HTMLButtonElement>
onContextMenuCapture
- Type
MouseEventHandler<HTMLButtonElement>
onCopy
- Type
ClipboardEventHandler<HTMLButtonElement>
onCopyCapture
- Type
ClipboardEventHandler<HTMLButtonElement>
onCut
- Type
ClipboardEventHandler<HTMLButtonElement>
onCutCapture
- Type
ClipboardEventHandler<HTMLButtonElement>
onDoubleClick
- Type
MouseEventHandler<HTMLButtonElement>
onDoubleClickCapture
- Type
MouseEventHandler<HTMLButtonElement>
onDrag
- Type
DragEventHandler<HTMLButtonElement>
onDragCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragEnd
- Type
DragEventHandler<HTMLButtonElement>
onDragEndCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragEnter
- Type
DragEventHandler<HTMLButtonElement>
onDragEnterCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragExit
- Type
DragEventHandler<HTMLButtonElement>
onDragExitCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragLeave
- Type
DragEventHandler<HTMLButtonElement>
onDragLeaveCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragOver
- Type
DragEventHandler<HTMLButtonElement>
onDragOverCapture
- Type
DragEventHandler<HTMLButtonElement>
onDragStart
- Type
DragEventHandler<HTMLButtonElement>
onDragStartCapture
- Type
DragEventHandler<HTMLButtonElement>
onDrop
- Type
DragEventHandler<HTMLButtonElement>
onDropCapture
- Type
DragEventHandler<HTMLButtonElement>
onDurationChange
- Type
ReactEventHandler<HTMLButtonElement>
onDurationChangeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onEmptied
- Type
ReactEventHandler<HTMLButtonElement>
onEmptiedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onEncrypted
- Type
ReactEventHandler<HTMLButtonElement>
onEncryptedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onEnded
- Type
ReactEventHandler<HTMLButtonElement>
onEndedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onError
- Type
ReactEventHandler<HTMLButtonElement>
onErrorCapture
- Type
ReactEventHandler<HTMLButtonElement>
onFocus
- Type
FocusEventHandler<HTMLButtonElement>
onFocusCapture
- Type
FocusEventHandler<HTMLButtonElement>
onGotPointerCapture
- Type
PointerEventHandler<HTMLButtonElement>
onGotPointerCaptureCapture
- Type
PointerEventHandler<HTMLButtonElement>
onInput
- Type
FormEventHandler<HTMLButtonElement>
onInputCapture
- Type
FormEventHandler<HTMLButtonElement>
onInvalid
- Type
FormEventHandler<HTMLButtonElement>
onInvalidCapture
- Type
FormEventHandler<HTMLButtonElement>
onKeyDown
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyDownCapture
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyPress
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyPressCapture
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyUp
- Type
KeyboardEventHandler<HTMLButtonElement>
onKeyUpCapture
- Type
KeyboardEventHandler<HTMLButtonElement>
onLoad
- Type
ReactEventHandler<HTMLButtonElement>
onLoadCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedData
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedDataCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedMetadata
- Type
ReactEventHandler<HTMLButtonElement>
onLoadedMetadataCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLoadStart
- Type
ReactEventHandler<HTMLButtonElement>
onLoadStartCapture
- Type
ReactEventHandler<HTMLButtonElement>
onLostPointerCapture
- Type
PointerEventHandler<HTMLButtonElement>
onLostPointerCaptureCapture
- Type
PointerEventHandler<HTMLButtonElement>
onMouseDown
- Type
MouseEventHandler<HTMLButtonElement>
onMouseDownCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseEnter
- Type
MouseEventHandler<HTMLButtonElement>
onMouseLeave
- Type
MouseEventHandler<HTMLButtonElement>
onMouseMove
- Type
MouseEventHandler<HTMLButtonElement>
onMouseMoveCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOut
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOutCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOver
- Type
MouseEventHandler<HTMLButtonElement>
onMouseOverCapture
- Type
MouseEventHandler<HTMLButtonElement>
onMouseUp
- Type
MouseEventHandler<HTMLButtonElement>
onMouseUpCapture
- Type
MouseEventHandler<HTMLButtonElement>
onPaste
- Type
ClipboardEventHandler<HTMLButtonElement>
onPasteCapture
- Type
ClipboardEventHandler<HTMLButtonElement>
onPause
- Type
ReactEventHandler<HTMLButtonElement>
onPauseCapture
- Type
ReactEventHandler<HTMLButtonElement>
onPlay
- Type
ReactEventHandler<HTMLButtonElement>
onPlayCapture
- Type
ReactEventHandler<HTMLButtonElement>
onPlaying
- Type
ReactEventHandler<HTMLButtonElement>
onPlayingCapture
- Type
ReactEventHandler<HTMLButtonElement>
onPointerCancel
- Type
PointerEventHandler<HTMLButtonElement>
onPointerCancelCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerDown
- Type
PointerEventHandler<HTMLButtonElement>
onPointerDownCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerEnter
- Type
PointerEventHandler<HTMLButtonElement>
onPointerEnterCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerLeave
- Type
PointerEventHandler<HTMLButtonElement>
onPointerLeaveCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerMove
- Type
PointerEventHandler<HTMLButtonElement>
onPointerMoveCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOut
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOutCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOver
- Type
PointerEventHandler<HTMLButtonElement>
onPointerOverCapture
- Type
PointerEventHandler<HTMLButtonElement>
onPointerUp
- Type
PointerEventHandler<HTMLButtonElement>
onPointerUpCapture
- Type
PointerEventHandler<HTMLButtonElement>
onProgress
- Type
ReactEventHandler<HTMLButtonElement>
onProgressCapture
- Type
ReactEventHandler<HTMLButtonElement>
onRateChange
- Type
ReactEventHandler<HTMLButtonElement>
onRateChangeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onReset
- Type
FormEventHandler<HTMLButtonElement>
onResetCapture
- Type
FormEventHandler<HTMLButtonElement>
onResize
- Type
ReactEventHandler<HTMLButtonElement>
onResizeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onScroll
- Type
UIEventHandler<HTMLButtonElement>
onScrollCapture
- Type
UIEventHandler<HTMLButtonElement>
onSeeked
- Type
ReactEventHandler<HTMLButtonElement>
onSeekedCapture
- Type
ReactEventHandler<HTMLButtonElement>
onSeeking
- Type
ReactEventHandler<HTMLButtonElement>
onSeekingCapture
- Type
ReactEventHandler<HTMLButtonElement>
onSelect
- Type
ReactEventHandler<HTMLButtonElement>
onSelectCapture
- Type
ReactEventHandler<HTMLButtonElement>
onStalled
- Type
ReactEventHandler<HTMLButtonElement>
onStalledCapture
- Type
ReactEventHandler<HTMLButtonElement>
onSubmit
- Type
FormEventHandler<HTMLButtonElement>
onSubmitCapture
- Type
FormEventHandler<HTMLButtonElement>
onSuspend
- Type
ReactEventHandler<HTMLButtonElement>
onSuspendCapture
- Type
ReactEventHandler<HTMLButtonElement>
onTimeUpdate
- Type
ReactEventHandler<HTMLButtonElement>
onTimeUpdateCapture
- Type
ReactEventHandler<HTMLButtonElement>
onTouchCancel
- Type
TouchEventHandler<HTMLButtonElement>
onTouchCancelCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTouchEnd
- Type
TouchEventHandler<HTMLButtonElement>
onTouchEndCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTouchMove
- Type
TouchEventHandler<HTMLButtonElement>
onTouchMoveCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTouchStart
- Type
TouchEventHandler<HTMLButtonElement>
onTouchStartCapture
- Type
TouchEventHandler<HTMLButtonElement>
onTransitionEnd
- Type
TransitionEventHandler<HTMLButtonElement>
onTransitionEndCapture
- Type
TransitionEventHandler<HTMLButtonElement>
onVolumeChange
- Type
ReactEventHandler<HTMLButtonElement>
onVolumeChangeCapture
- Type
ReactEventHandler<HTMLButtonElement>
onWaiting
- Type
ReactEventHandler<HTMLButtonElement>
onWaitingCapture
- Type
ReactEventHandler<HTMLButtonElement>
onWheel
- Type
WheelEventHandler<HTMLButtonElement>
onWheelCapture
- Type
WheelEventHandler<HTMLButtonElement>
placeholder
- Type
string
prefix
- Type
string
property
- Type
string
radioGroup
- Type
string
resource
- Type
string
results
- Type
number
role
- Type
AriaRole
security
- Type
string
slot
- Type
string
spellCheck
- Type
Booleanish
suppressContentEditableWarning
- Type
boolean
suppressHydrationWarning
- Type
boolean
tabIndex
- Type
number
title
- Type
string
translate
- Type
"yes" | "no"
type
- Type
"button" | "reset" | "submit"
typeof
- Type
string
unselectable
- Type
"on" | "off"
value
- Type
string | number | readonly string[]
vocab
- Type
string