yarn add @twilio-paste/product-switcher - or - yarn add @twilio-paste/product-switcher
import {
ProductSwitcher,
ProductSwitcherButton,
ProductSwitcherItem,
useProductSwitcherState,
} from '@twilio-paste/core/product-switcher';
const ProductSwitcherMenu = () => {
const productSwitcher = useProductSwitcherState();
const [product, setProduct] = React.useState('twilio');
return (
<>
<ProductSwitcherButton {...productSwitcher} i18nButtonLabel="Switch products" />
<ProductSwitcher {...productSwitcher} aria-label="Available Products">
<ProductSwitcherItem
{...productSwitcher}
name="product"
value="twilio"
checked={product === 'twilio'}
onChange={(e) => {
setProduct('twilio');
}}
productName="Twilio"
productStrapline="SMS, Voice & Video"
productIcon={<LogoTwilioIcon decorative />}
/>
<ProductSwitcherItem
{...productSwitcher}
name="product"
value="segment"
checked={product === 'segment'}
onChange={(e) => {
setProduct('segment');
}}
productName="Segment"
productStrapline="Customer data platform"
productIcon={<ProductSegmentIcon decorative />}
/>
<ProductSwitcherItem
{...productSwitcher}
name="product"
value="flex"
checked={product === 'flex'}
onChange={(e) => {
setProduct('flex');
}}
productName="Flex"
productStrapline="Cloud-based contact center"
productIcon={<ProductFlexIcon decorative />}
/>
<ProductSwitcherItem
{...productSwitcher}
name="product"
value="sendgrid"
checked={product === 'sendgrid'}
onChange={(e) => {
setProduct('sendgrid');
}}
productName="SendGrid"
productStrapline="Email delivery and API"
productIcon={<ProductEmailAPIIcon decorative />}
/>
<ProductSwitcherItem
{...productSwitcher}
name="product"
value="admin"
checked={product === 'admin'}
onChange={(e) => {
setProduct('admin');
}}
productName="Console Admin"
productStrapline="Admin center"
productIcon={<LogoTwilioIcon decorative />}
/>
</ProductSwitcher>
</>
);
};
aria-label RequiredRequired
Defines a string value that labels the current element.
- Type
string
baseId RequiredRequired
ID that will serve as a base for all the items IDs.
- Type
string
first RequiredRequired
Moves focus to the first item.
- Type
() => void
items RequiredRequired
Lists all the composite items with their id
, DOM ref
, disabled
state
and groupId
if any. This state is automatically updated when
registerItem
and unregisterItem
are called.
- Type
Item[]
last RequiredRequired
Moves focus to the last item.
- Type
() => void
move RequiredRequired
Moves focus to a given item ID.
- Type
(id: string | null) => void
next RequiredRequired
Moves focus to the next item.
- Type
(unstable_allTheWay?: boolean | undefined) => void
placement RequiredRequired
Actual placement
.
- Type
Placement
previous RequiredRequired
Moves focus to the previous item.
- Type
(unstable_allTheWay?: boolean | undefined) => void
setCurrentId RequiredRequired
Sets currentId
. This is different from composite.move
as this only
updates the currentId
state without moving focus. When the composite
widget gets focused by the user, the item referred by the currentId
state will get focus.
- Type
Dispatch<SetStateAction<string | null | undefined>>
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
string
- Default
'PRODUCT_SWITCHER'
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
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
animating
Whether it's animating or not.
- Type
boolean
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
"move" | "link" | "none" | "copy" | "execute" | "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
className
- Type
string
color
- Type
string
contentEditable
- Type
Booleanish | "inherit"
contextMenu
- Type
string
currentId
The current focused item id
.
undefined
will automatically focus the first enabled composite item.null
will focus the base composite element and users will be able to navigate out of it using arrow keys.- If
currentId
is initially set tonull
, the base composite element itself will have focus and users will be able to navigate to it using arrow keys.
- Type
string
- Default
undefined
dangerouslySetInnerHTML
- Type
{ __html: string }
datatype
- Type
string
defaultChecked
- Type
boolean
defaultValue
- Type
string | number | readonly string[]
dir
- Type
string
disabled
Same as the HTML attribute.
- Type
boolean
draggable
- Type
Booleanish
focusable
When an element is disabled
, it may still be focusable
. It works
similarly to readOnly
on form elements. In this case, only
aria-disabled
will be set.
- Type
boolean
groups
Lists all the composite groups with their id
and DOM ref
. This state
is automatically updated when registerGroup
and unregisterGroup
are
called.
- Type
Group[]
hidden
- Type
boolean
hide
Changes the visible
state to false
- Type
() => void
hideOnClickOutside
When enabled, user can hide the dialog by clicking outside it.
- 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
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
nonce
- Type
string
onAbort
- Type
ReactEventHandler<any>
onAbortCapture
- Type
ReactEventHandler<any>
onAnimationEnd
- Type
AnimationEventHandler<any>
onAnimationEndCapture
- Type
AnimationEventHandler<any>
onAnimationIteration
- Type
AnimationEventHandler<any>
onAnimationIterationCapture
- Type
AnimationEventHandler<any>
onAnimationStart
- Type
AnimationEventHandler<any>
onAnimationStartCapture
- Type
AnimationEventHandler<any>
onAuxClick
- Type
MouseEventHandler<any>
onAuxClickCapture
- Type
MouseEventHandler<any>
onBeforeInput
- Type
FormEventHandler<any>
onBeforeInputCapture
- Type
FormEventHandler<any>
onBlur
- Type
FocusEventHandler<any>
onBlurCapture
- Type
FocusEventHandler<any>
onCanPlay
- Type
ReactEventHandler<any>
onCanPlayCapture
- Type
ReactEventHandler<any>
onCanPlayThrough
- Type
ReactEventHandler<any>
onCanPlayThroughCapture
- Type
ReactEventHandler<any>
onChange
- Type
FormEventHandler<any>
onChangeCapture
- Type
FormEventHandler<any>
onClick
- Type
MouseEventHandler<any>
onClickCapture
- Type
MouseEventHandler<any>
onCompositionEnd
- Type
CompositionEventHandler<any>
onCompositionEndCapture
- Type
CompositionEventHandler<any>
onCompositionStart
- Type
CompositionEventHandler<any>
onCompositionStartCapture
- Type
CompositionEventHandler<any>
onCompositionUpdate
- Type
CompositionEventHandler<any>
onCompositionUpdateCapture
- Type
CompositionEventHandler<any>
onContextMenu
- Type
MouseEventHandler<any>
onContextMenuCapture
- Type
MouseEventHandler<any>
onCopy
- Type
ClipboardEventHandler<any>
onCopyCapture
- Type
ClipboardEventHandler<any>
onCut
- Type
ClipboardEventHandler<any>
onCutCapture
- Type
ClipboardEventHandler<any>
onDoubleClick
- Type
MouseEventHandler<any>
onDoubleClickCapture
- Type
MouseEventHandler<any>
onDrag
- Type
DragEventHandler<any>
onDragCapture
- Type
DragEventHandler<any>
onDragEnd
- Type
DragEventHandler<any>
onDragEndCapture
- Type
DragEventHandler<any>
onDragEnter
- Type
DragEventHandler<any>
onDragEnterCapture
- Type
DragEventHandler<any>
onDragExit
- Type
DragEventHandler<any>
onDragExitCapture
- Type
DragEventHandler<any>
onDragLeave
- Type
DragEventHandler<any>
onDragLeaveCapture
- Type
DragEventHandler<any>
onDragOver
- Type
DragEventHandler<any>
onDragOverCapture
- Type
DragEventHandler<any>
onDragStart
- Type
DragEventHandler<any>
onDragStartCapture
- Type
DragEventHandler<any>
onDrop
- Type
DragEventHandler<any>
onDropCapture
- Type
DragEventHandler<any>
onDurationChange
- Type
ReactEventHandler<any>
onDurationChangeCapture
- Type
ReactEventHandler<any>
onEmptied
- Type
ReactEventHandler<any>
onEmptiedCapture
- Type
ReactEventHandler<any>
onEncrypted
- Type
ReactEventHandler<any>
onEncryptedCapture
- Type
ReactEventHandler<any>
onEnded
- Type
ReactEventHandler<any>
onEndedCapture
- Type
ReactEventHandler<any>
onError
- Type
ReactEventHandler<any>
onErrorCapture
- Type
ReactEventHandler<any>
onFocus
- Type
FocusEventHandler<any>
onFocusCapture
- Type
FocusEventHandler<any>
onGotPointerCapture
- Type
PointerEventHandler<any>
onGotPointerCaptureCapture
- Type
PointerEventHandler<any>
onInput
- Type
FormEventHandler<any>
onInputCapture
- Type
FormEventHandler<any>
onInvalid
- Type
FormEventHandler<any>
onInvalidCapture
- Type
FormEventHandler<any>
onKeyDown
- Type
KeyboardEventHandler<any>
onKeyDownCapture
- Type
KeyboardEventHandler<any>
onKeyPress
- Type
KeyboardEventHandler<any>
onKeyPressCapture
- Type
KeyboardEventHandler<any>
onKeyUp
- Type
KeyboardEventHandler<any>
onKeyUpCapture
- Type
KeyboardEventHandler<any>
onLoad
- Type
ReactEventHandler<any>
onLoadCapture
- Type
ReactEventHandler<any>
onLoadedData
- Type
ReactEventHandler<any>
onLoadedDataCapture
- Type
ReactEventHandler<any>
onLoadedMetadata
- Type
ReactEventHandler<any>
onLoadedMetadataCapture
- Type
ReactEventHandler<any>
onLoadStart
- Type
ReactEventHandler<any>
onLoadStartCapture
- Type
ReactEventHandler<any>
onLostPointerCapture
- Type
PointerEventHandler<any>
onLostPointerCaptureCapture
- Type
PointerEventHandler<any>
onMouseDown
- Type
MouseEventHandler<any>
onMouseDownCapture
- Type
MouseEventHandler<any>
onMouseEnter
- Type
MouseEventHandler<any>
onMouseLeave
- Type
MouseEventHandler<any>
onMouseMove
- Type
MouseEventHandler<any>
onMouseMoveCapture
- Type
MouseEventHandler<any>
onMouseOut
- Type
MouseEventHandler<any>
onMouseOutCapture
- Type
MouseEventHandler<any>
onMouseOver
- Type
MouseEventHandler<any>
onMouseOverCapture
- Type
MouseEventHandler<any>
onMouseUp
- Type
MouseEventHandler<any>
onMouseUpCapture
- Type
MouseEventHandler<any>
onPaste
- Type
ClipboardEventHandler<any>
onPasteCapture
- Type
ClipboardEventHandler<any>
onPause
- Type
ReactEventHandler<any>
onPauseCapture
- Type
ReactEventHandler<any>
onPlay
- Type
ReactEventHandler<any>
onPlayCapture
- Type
ReactEventHandler<any>
onPlaying
- Type
ReactEventHandler<any>
onPlayingCapture
- Type
ReactEventHandler<any>
onPointerCancel
- Type
PointerEventHandler<any>
onPointerCancelCapture
- Type
PointerEventHandler<any>
onPointerDown
- Type
PointerEventHandler<any>
onPointerDownCapture
- Type
PointerEventHandler<any>
onPointerEnter
- Type
PointerEventHandler<any>
onPointerEnterCapture
- Type
PointerEventHandler<any>
onPointerLeave
- Type
PointerEventHandler<any>
onPointerLeaveCapture
- Type
PointerEventHandler<any>
onPointerMove
- Type
PointerEventHandler<any>
onPointerMoveCapture
- Type
PointerEventHandler<any>
onPointerOut
- Type
PointerEventHandler<any>
onPointerOutCapture
- Type
PointerEventHandler<any>
onPointerOver
- Type
PointerEventHandler<any>
onPointerOverCapture
- Type
PointerEventHandler<any>
onPointerUp
- Type
PointerEventHandler<any>
onPointerUpCapture
- Type
PointerEventHandler<any>
onProgress
- Type
ReactEventHandler<any>
onProgressCapture
- Type
ReactEventHandler<any>
onRateChange
- Type
ReactEventHandler<any>
onRateChangeCapture
- Type
ReactEventHandler<any>
onReset
- Type
FormEventHandler<any>
onResetCapture
- Type
FormEventHandler<any>
onResize
- Type
ReactEventHandler<any>
onResizeCapture
- Type
ReactEventHandler<any>
onScroll
- Type
UIEventHandler<any>
onScrollCapture
- Type
UIEventHandler<any>
onSeeked
- Type
ReactEventHandler<any>
onSeekedCapture
- Type
ReactEventHandler<any>
onSeeking
- Type
ReactEventHandler<any>
onSeekingCapture
- Type
ReactEventHandler<any>
onSelect
- Type
ReactEventHandler<any>
onSelectCapture
- Type
ReactEventHandler<any>
onStalled
- Type
ReactEventHandler<any>
onStalledCapture
- Type
ReactEventHandler<any>
onSubmit
- Type
FormEventHandler<any>
onSubmitCapture
- Type
FormEventHandler<any>
onSuspend
- Type
ReactEventHandler<any>
onSuspendCapture
- Type
ReactEventHandler<any>
onTimeUpdate
- Type
ReactEventHandler<any>
onTimeUpdateCapture
- Type
ReactEventHandler<any>
onTouchCancel
- Type
TouchEventHandler<any>
onTouchCancelCapture
- Type
TouchEventHandler<any>
onTouchEnd
- Type
TouchEventHandler<any>
onTouchEndCapture
- Type
TouchEventHandler<any>
onTouchMove
- Type
TouchEventHandler<any>
onTouchMoveCapture
- Type
TouchEventHandler<any>
onTouchStart
- Type
TouchEventHandler<any>
onTouchStartCapture
- Type
TouchEventHandler<any>
onTransitionEnd
- Type
TransitionEventHandler<any>
onTransitionEndCapture
- Type
TransitionEventHandler<any>
onVolumeChange
- Type
ReactEventHandler<any>
onVolumeChangeCapture
- Type
ReactEventHandler<any>
onWaiting
- Type
ReactEventHandler<any>
onWaitingCapture
- Type
ReactEventHandler<any>
onWheel
- Type
WheelEventHandler<any>
onWheelCapture
- Type
WheelEventHandler<any>
orientation
Defines the orientation of the composite widget. If the composite has a
single row or column (one-dimensional), the orientation
value determines
which arrow keys can be used to move focus:
undefined
: all arrow keys work.horizontal
: only left and right arrow keys work.vertical
: only up and down arrow keys work.
It doesn't have any effect on two-dimensional composites.
- Type
Orientation
- Default
undefined
placeholder
- Type
string
prefix
- Type
string
preventBodyScroll
When enabled, user can't scroll on body when the dialog is visible. This option doesn't work if the dialog isn't modal.
- Type
boolean
property
- Type
string
radioGroup
- Type
string
ref
- Type
((instance: any) => void) | RefObject<any>
resource
- Type
string
results
- Type
number
role
- Type
AriaRole
security
- Type
string
slot
- Type
string
spellCheck
- Type
Booleanish
stopAnimation
Stops animation. It's called automatically if there's a CSS transition.
- Type
() => void
style
- Type
CSSProperties
suppressContentEditableWarning
- Type
boolean
suppressHydrationWarning
- Type
boolean
tabIndex
- Type
number
title
- Type
string
translate
- Type
"yes" | "no"
typeof
- Type
string
unselectable
- Type
"on" | "off"
unstable_autoFocusOnHide
Whether or not to move focus when the dialog hides.
- Type
boolean
unstable_autoFocusOnShow
Whether or not to move focus when the dialog shows.
- Type
boolean
unstable_disclosureRef
- Type
MutableRefObject<HTMLElement | null>
unstable_finalFocusRef
The element that will be focused when the dialog hides. When not set, the disclosure component will be used.
- Type
RefObject<HTMLElement>
unstable_initialFocusRef
The element that will be focused when the dialog shows. When not set, the first tabbable element within the dialog will be used.
- Type
RefObject<HTMLElement>
unstable_moves
Stores the number of moves that have been performed by calling move
,
next
, previous
, up
, down
, first
or last
.
- Type
number
- Default
0
unstable_orphan
Whether or not the dialog should be a child of its parent.
Opening a nested orphan dialog will close its parent dialog if
hideOnClickOutside
is set to true
on the parent.
It will be set to false
if modal
is false
.
- Type
boolean
unstable_popoverRef
The popover element.
- Type
RefObject<HTMLElement | null>
unstable_popoverStyles
Popover styles.
- Type
CSSProperties
unstable_system
Options passed to reakit-system-*
- Type
any
unstable_virtual
If enabled, the composite element will act as an aria-activedescendant container instead of roving tabindex. DOM focus will remain on the composite while its items receive virtual focus.
- Type
boolean
visible
Whether it's visible or not.
- Type
boolean
vocab
- Type
string
wrap
Has effect only on two-dimensional composites. If enabled, moving to the next item from the last one in a row or column will focus the first item in the next row or column and vice-versa.
true
wraps between rows and columns.horizontal
wraps only between rows.vertical
wraps only between columns.- If
loop
matches the value ofwrap
, it'll wrap between the last item in the last row or column and the first item in the first row or column and vice-versa.
- Type
boolean | Orientation
wrapElement
Function returned by the hook to wrap the element to which html props will be passed.
- Type
(element: ReactNode) => ReactNode
down RequiredRequired
Moves focus to the item below.
- Type
(unstable_allTheWay?: boolean | undefined) => void
first RequiredRequired
Moves focus to the first item.
- Type
() => void
items RequiredRequired
Lists all the composite items with their id
, DOM ref
, disabled
state
and groupId
if any. This state is automatically updated when
registerItem
and unregisterItem
are called.
- Type
Item[]
last RequiredRequired
Moves focus to the last item.
- Type
() => void
move RequiredRequired
Moves focus to a given item ID.
- Type
(id: string | null) => void
name RequiredRequired
MenuItemRadio's name as in menu.values
.
- Type
string
next RequiredRequired
Moves focus to the next item.
- Type
(unstable_allTheWay?: boolean | undefined) => void
previous RequiredRequired
Moves focus to the previous item.
- Type
(unstable_allTheWay?: boolean | undefined) => void
productIcon RequiredRequired
Icon to use for the ProductSwitcherItem. Use a Paste Icon.
- Type
NonNullable<ReactNode>
- Default
'PRODUCT_SWITCHER_ITEM'
productName RequiredRequired
Name of the ProductSwitcherItem.
- Type
string
productStrapline RequiredRequired
Subtext for the ProductSwitcherItem.
- Type
string
registerItem RequiredRequired
Registers a composite item.
- Type
(item: Item) => void
setCurrentId RequiredRequired
Sets currentId
. This is different from composite.move
as this only
updates the currentId
state without moving focus. When the composite
widget gets focused by the user, the item referred by the currentId
state will get focus.
- Type
Dispatch<SetStateAction<string | null | undefined>>
unregisterItem RequiredRequired
Unregisters a composite item.
- Type
(id: string) => void
unstable_setValue RequiredRequired
Updates checkboxes and radios values within the menu.
- Type
(name: string, value?: any) => void
unstable_values RequiredRequired
Stores the values of radios and checkboxes within the menu.
- Type
Record<string, any>
up RequiredRequired
Moves focus to the item above.
- Type
(unstable_allTheWay?: boolean | undefined) => void
value RequiredRequired
Same as the value
attribute.
- Type
| string | number | (string & readonly string[]) | (number & readonly string[])
as
- Type
any
element
Overrides the default element name to apply unique styles with the Customization Provider.
- Type
string
- Default
'PRODUCT_SWITCHER_ITEM'
href
Pass href prop to render an anchor element.
- Type
string
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
accept
- Type
string
accessKey
- Type
string
alt
- 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
"move" | "link" | "none" | "copy" | "execute" | "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
autoComplete
- Type
string
autoCorrect
- Type
string
autoFocus
- Type
boolean
autoSave
- Type
string
baseId
ID that will serve as a base for all the items IDs.
- Type
string
capture
- Type
boolean | "user" | "environment"
checked
Same as the checked
attribute.
- Type
boolean
className
- Type
string
color
- Type
string
contentEditable
- Type
Booleanish | "inherit"
contextMenu
- Type
string
crossOrigin
- Type
"" | "anonymous" | "use-credentials"
currentId
The current focused item id
.
undefined
will automatically focus the first enabled composite item.null
will focus the base composite element and users will be able to navigate out of it using arrow keys.- If
currentId
is initially set tonull
, the base composite element itself will have focus and users will be able to navigate to it using arrow keys.
- Type
string
- Default
undefined
dangerouslySetInnerHTML
- Type
{ __html: string }
datatype
- Type
string
defaultChecked
- Type
boolean
defaultValue
- Type
string | number | readonly string[]
dir
- Type
string
disabled
Same as the HTML attribute.
- Type
boolean
draggable
- Type
Booleanish
enterKeyHint
- Type
| "next" | "previous" | "search" | "enter" | "done" | "go" | "send"
focusable
When an element is disabled
, it may still be focusable
. It works
similarly to readOnly
on form elements. In this case, only
aria-disabled
will be set.
- Type
boolean
form
- Type
string
formAction
- Type
string
formEncType
- Type
string
formMethod
- Type
string
formNoValidate
- Type
boolean
formTarget
- Type
string
height
- Type
string | number
hidden
- Type
boolean
hide
Changes the visible
state to false
- Type
() => void
id
Same as the HTML attribute.
- 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
list
- Type
string
max
- Type
string | number
maxLength
- Type
number
min
- Type
string | number
minLength
- Type
number
multiple
- Type
boolean
nonce
- Type
string
onAbort
- Type
ReactEventHandler<any>
onAbortCapture
- Type
ReactEventHandler<any>
onAnimationEnd
- Type
AnimationEventHandler<any>
onAnimationEndCapture
- Type
AnimationEventHandler<any>
onAnimationIteration
- Type
AnimationEventHandler<any>
onAnimationIterationCapture
- Type
AnimationEventHandler<any>
onAnimationStart
- Type
AnimationEventHandler<any>
onAnimationStartCapture
- Type
AnimationEventHandler<any>
onAuxClick
- Type
MouseEventHandler<any>
onAuxClickCapture
- Type
MouseEventHandler<any>
onBeforeInput
- Type
FormEventHandler<any>
onBeforeInputCapture
- Type
FormEventHandler<any>
onBlur
- Type
FocusEventHandler<any>
onBlurCapture
- Type
FocusEventHandler<any>
onCanPlay
- Type
ReactEventHandler<any>
onCanPlayCapture
- Type
ReactEventHandler<any>
onCanPlayThrough
- Type
ReactEventHandler<any>
onCanPlayThroughCapture
- Type
ReactEventHandler<any>
onChange
- Type
FormEventHandler<any> & ChangeEventHandler<any>
onChangeCapture
- Type
FormEventHandler<any>
onClick
- Type
MouseEventHandler<any>
onClickCapture
- Type
MouseEventHandler<any>
onCompositionEnd
- Type
CompositionEventHandler<any>
onCompositionEndCapture
- Type
CompositionEventHandler<any>
onCompositionStart
- Type
CompositionEventHandler<any>
onCompositionStartCapture
- Type
CompositionEventHandler<any>
onCompositionUpdate
- Type
CompositionEventHandler<any>
onCompositionUpdateCapture
- Type
CompositionEventHandler<any>
onContextMenu
- Type
MouseEventHandler<any>
onContextMenuCapture
- Type
MouseEventHandler<any>
onCopy
- Type
ClipboardEventHandler<any>
onCopyCapture
- Type
ClipboardEventHandler<any>
onCut
- Type
ClipboardEventHandler<any>
onCutCapture
- Type
ClipboardEventHandler<any>
onDoubleClick
- Type
MouseEventHandler<any>
onDoubleClickCapture
- Type
MouseEventHandler<any>
onDrag
- Type
DragEventHandler<any>
onDragCapture
- Type
DragEventHandler<any>
onDragEnd
- Type
DragEventHandler<any>
onDragEndCapture
- Type
DragEventHandler<any>
onDragEnter
- Type
DragEventHandler<any>
onDragEnterCapture
- Type
DragEventHandler<any>
onDragExit
- Type
DragEventHandler<any>
onDragExitCapture
- Type
DragEventHandler<any>
onDragLeave
- Type
DragEventHandler<any>
onDragLeaveCapture
- Type
DragEventHandler<any>
onDragOver
- Type
DragEventHandler<any>
onDragOverCapture
- Type
DragEventHandler<any>
onDragStart
- Type
DragEventHandler<any>
onDragStartCapture
- Type
DragEventHandler<any>
onDrop
- Type
DragEventHandler<any>
onDropCapture
- Type
DragEventHandler<any>
onDurationChange
- Type
ReactEventHandler<any>
onDurationChangeCapture
- Type
ReactEventHandler<any>
onEmptied
- Type
ReactEventHandler<any>
onEmptiedCapture
- Type
ReactEventHandler<any>
onEncrypted
- Type
ReactEventHandler<any>
onEncryptedCapture
- Type
ReactEventHandler<any>
onEnded
- Type
ReactEventHandler<any>
onEndedCapture
- Type
ReactEventHandler<any>
onError
- Type
ReactEventHandler<any>
onErrorCapture
- Type
ReactEventHandler<any>
onFocus
- Type
FocusEventHandler<any>
onFocusCapture
- Type
FocusEventHandler<any>
onGotPointerCapture
- Type
PointerEventHandler<any>
onGotPointerCaptureCapture
- Type
PointerEventHandler<any>
onInput
- Type
FormEventHandler<any>
onInputCapture
- Type
FormEventHandler<any>
onInvalid
- Type
FormEventHandler<any>
onInvalidCapture
- Type
FormEventHandler<any>
onKeyDown
- Type
KeyboardEventHandler<any>
onKeyDownCapture
- Type
KeyboardEventHandler<any>
onKeyPress
- Type
KeyboardEventHandler<any>
onKeyPressCapture
- Type
KeyboardEventHandler<any>
onKeyUp
- Type
KeyboardEventHandler<any>
onKeyUpCapture
- Type
KeyboardEventHandler<any>
onLoad
- Type
ReactEventHandler<any>
onLoadCapture
- Type
ReactEventHandler<any>
onLoadedData
- Type
ReactEventHandler<any>
onLoadedDataCapture
- Type
ReactEventHandler<any>
onLoadedMetadata
- Type
ReactEventHandler<any>
onLoadedMetadataCapture
- Type
ReactEventHandler<any>
onLoadStart
- Type
ReactEventHandler<any>
onLoadStartCapture
- Type
ReactEventHandler<any>
onLostPointerCapture
- Type
PointerEventHandler<any>
onLostPointerCaptureCapture
- Type
PointerEventHandler<any>
onMouseDown
- Type
MouseEventHandler<any>
onMouseDownCapture
- Type
MouseEventHandler<any>
onMouseEnter
- Type
MouseEventHandler<any>
onMouseLeave
- Type
MouseEventHandler<any>
onMouseMove
- Type
MouseEventHandler<any>
onMouseMoveCapture
- Type
MouseEventHandler<any>
onMouseOut
- Type
MouseEventHandler<any>
onMouseOutCapture
- Type
MouseEventHandler<any>
onMouseOver
- Type
MouseEventHandler<any>
onMouseOverCapture
- Type
MouseEventHandler<any>
onMouseUp
- Type
MouseEventHandler<any>
onMouseUpCapture
- Type
MouseEventHandler<any>
onPaste
- Type
ClipboardEventHandler<any>
onPasteCapture
- Type
ClipboardEventHandler<any>
onPause
- Type
ReactEventHandler<any>
onPauseCapture
- Type
ReactEventHandler<any>
onPlay
- Type
ReactEventHandler<any>
onPlayCapture
- Type
ReactEventHandler<any>
onPlaying
- Type
ReactEventHandler<any>
onPlayingCapture
- Type
ReactEventHandler<any>
onPointerCancel
- Type
PointerEventHandler<any>
onPointerCancelCapture
- Type
PointerEventHandler<any>
onPointerDown
- Type
PointerEventHandler<any>
onPointerDownCapture
- Type
PointerEventHandler<any>
onPointerEnter
- Type
PointerEventHandler<any>
onPointerEnterCapture
- Type
PointerEventHandler<any>
onPointerLeave
- Type
PointerEventHandler<any>
onPointerLeaveCapture
- Type
PointerEventHandler<any>
onPointerMove
- Type
PointerEventHandler<any>
onPointerMoveCapture
- Type
PointerEventHandler<any>
onPointerOut
- Type
PointerEventHandler<any>
onPointerOutCapture
- Type
PointerEventHandler<any>
onPointerOver
- Type
PointerEventHandler<any>
onPointerOverCapture
- Type
PointerEventHandler<any>
onPointerUp
- Type
PointerEventHandler<any>
onPointerUpCapture
- Type
PointerEventHandler<any>
onProgress
- Type
ReactEventHandler<any>
onProgressCapture
- Type
ReactEventHandler<any>
onRateChange
- Type
ReactEventHandler<any>
onRateChangeCapture
- Type
ReactEventHandler<any>
onReset
- Type
FormEventHandler<any>
onResetCapture
- Type
FormEventHandler<any>
onResize
- Type
ReactEventHandler<any>
onResizeCapture
- Type
ReactEventHandler<any>
onScroll
- Type
UIEventHandler<any>
onScrollCapture
- Type
UIEventHandler<any>
onSeeked
- Type
ReactEventHandler<any>
onSeekedCapture
- Type
ReactEventHandler<any>
onSeeking
- Type
ReactEventHandler<any>
onSeekingCapture
- Type
ReactEventHandler<any>
onSelect
- Type
ReactEventHandler<any>
onSelectCapture
- Type
ReactEventHandler<any>
onStalled
- Type
ReactEventHandler<any>
onStalledCapture
- Type
ReactEventHandler<any>
onSubmit
- Type
FormEventHandler<any>
onSubmitCapture
- Type
FormEventHandler<any>
onSuspend
- Type
ReactEventHandler<any>
onSuspendCapture
- Type
ReactEventHandler<any>
onTimeUpdate
- Type
ReactEventHandler<any>
onTimeUpdateCapture
- Type
ReactEventHandler<any>
onTouchCancel
- Type
TouchEventHandler<any>
onTouchCancelCapture
- Type
TouchEventHandler<any>
onTouchEnd
- Type
TouchEventHandler<any>
onTouchEndCapture
- Type
TouchEventHandler<any>
onTouchMove
- Type
TouchEventHandler<any>
onTouchMoveCapture
- Type
TouchEventHandler<any>
onTouchStart
- Type
TouchEventHandler<any>
onTouchStartCapture
- Type
TouchEventHandler<any>
onTransitionEnd
- Type
TransitionEventHandler<any>
onTransitionEndCapture
- Type
TransitionEventHandler<any>
onVolumeChange
- Type
ReactEventHandler<any>
onVolumeChangeCapture
- Type
ReactEventHandler<any>
onWaiting
- Type
ReactEventHandler<any>
onWaitingCapture
- Type
ReactEventHandler<any>
onWheel
- Type
WheelEventHandler<any>
onWheelCapture
- Type
WheelEventHandler<any>
orientation
Defines the orientation of the composite widget. If the composite has a
single row or column (one-dimensional), the orientation
value determines
which arrow keys can be used to move focus:
undefined
: all arrow keys work.horizontal
: only left and right arrow keys work.vertical
: only up and down arrow keys work.
It doesn't have any effect on two-dimensional composites.
- Type
Orientation
- Default
undefined
pattern
- Type
string
placeholder
- Type
string
placement
Actual placement
.
- Type
Placement
prefix
- Type
string
property
- Type
string
radioGroup
- Type
string
readOnly
- Type
boolean
ref
- Type
((instance: any) => void) | RefObject<any>
required
- Type
boolean
resource
- Type
string
results
- Type
number
role
- Type
AriaRole
security
- Type
string
setState
Sets state
.
- Type
Dispatch<SetStateAction<string | number | undefined>>
size
- Type
number
slot
- Type
string
spellCheck
- Type
Booleanish
src
- Type
string
state
The value
attribute of the current checked radio.
- Type
string | number
step
- Type
string | number
style
- Type
CSSProperties
suppressContentEditableWarning
- Type
boolean
suppressHydrationWarning
- Type
boolean
tabIndex
- Type
number
title
- Type
string
translate
- Type
"yes" | "no"
type
- Type
HTMLInputTypeAttribute
typeof
- Type
string
unselectable
- Type
"on" | "off"
unstable_arrowStyles
Arrow styles.
- Type
CSSProperties
unstable_checkOnFocus
- Type
boolean
unstable_clickOnEnter
Whether or not trigger click on pressing Enter.
- Type
boolean
unstable_clickOnSpace
Whether or not trigger click on pressing Space.
- Type
boolean
unstable_hasActiveWidget
- Type
boolean
unstable_idCountRef
- Type
MutableRefObject<number>
unstable_moves
Stores the number of moves that have been performed by calling move
,
next
, previous
, up
, down
, first
or last
.
- Type
number
- Default
0
unstable_popoverStyles
Popover styles.
- Type
CSSProperties
unstable_system
Options passed to reakit-system-*
- Type
any
unstable_virtual
If enabled, the composite element will act as an aria-activedescendant container instead of roving tabindex. DOM focus will remain on the composite while its items receive virtual focus.
- Type
boolean
visible
Whether it's visible or not.
- Type
boolean
vocab
- Type
string
width
- Type
string | number
wrapElement
Function returned by the hook to wrap the element to which html props will be passed.
- Type
(element: ReactNode) => ReactNode
baseId RequiredRequired
ID that will serve as a base for all the items IDs.
- Type
string
first RequiredRequired
Moves focus to the first item.
- Type
() => void
i18nButtonLabel RequiredRequired
Accessible label for the ProductSwitcherButton used by screen readers.
- Type
string
last RequiredRequired
Moves focus to the last item.
- Type
() => void
placement RequiredRequired
Actual placement
.
- Type
Placement
show RequiredRequired
Changes the visible
state to true
- Type
() => void
toggle RequiredRequired
Toggles the visible
state
- Type
() => void
as
The HTML tag to replace the default <button>
tag.
- Type
keyof IntrinsicElements
- Default
'button'
element
Overrides the default element name to apply unique styles with the Customization Provider.
- Type
string
- Default
'PRODUCT_SWITCHER_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)'
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
target
- Type
string
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
"move" | "link" | "none" | "copy" | "execute" | "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
className
- Type
string
color
Responsive style prop of Text Color tokens for the CSS color
property
- Type
| string | (string & (TextColorOptions | null)[]) | (string & { [x: string]: TextColorOptions | undefined [x: number]: TextColorOptions | undefined })
contentEditable
- Type
Booleanish | "inherit"
contextMenu
- Type
string
currentId
The current focused item id
.
undefined
will automatically focus the first enabled composite item.null
will focus the base composite element and users will be able to navigate out of it using arrow keys.- If
currentId
is initially set tonull
, the base composite element itself will have focus and users will be able to navigate to it using arrow keys.
- Type
string
- Default
undefined
dangerouslySetInnerHTML
- Type
{ __html: string }
datatype
- Type
string
defaultChecked
- Type
boolean
defaultValue
- Type
string | number | readonly string[]
dir
- Type
string
disabled
Same as the HTML attribute.
Prevent actions from firing on this Button
- Type
boolean
draggable
- Type
Booleanish
focusable
When an element is disabled
, it may still be focusable
. It works
similarly to readOnly
on form elements. In this case, only
aria-disabled
will be set.
- Type
boolean
form
- Type
string
formAction
- Type
string
formEncType
- Type
string
formMethod
- Type
string
formNoValidate
- Type
boolean
formTarget
- Type
string
hidden
- Type
boolean
hide
Changes the visible
state to false
- Type
() => void
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
move
Moves focus to a given item ID.
- Type
(id: string | null) => void
name
- Type
string
nonce
- Type
string
onAbort
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onAbortCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onAnimationEnd
- Type
AnimationEventHandler<any> & AnimationEventHandler<HTMLButtonElement>
onAnimationEndCapture
- Type
AnimationEventHandler<any> & AnimationEventHandler<HTMLButtonElement>
onAnimationIteration
- Type
AnimationEventHandler<any> & AnimationEventHandler<HTMLButtonElement>
onAnimationIterationCapture
- Type
AnimationEventHandler<any> & AnimationEventHandler<HTMLButtonElement>
onAnimationStart
- Type
AnimationEventHandler<any> & AnimationEventHandler<HTMLButtonElement>
onAnimationStartCapture
- Type
AnimationEventHandler<any> & AnimationEventHandler<HTMLButtonElement>
onAuxClick
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onAuxClickCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onBeforeInput
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onBeforeInputCapture
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onBlur
- Type
FocusEventHandler<any> & FocusEventHandler<HTMLButtonElement>
onBlurCapture
- Type
FocusEventHandler<any> & FocusEventHandler<HTMLButtonElement>
onCanPlay
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onCanPlayCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onCanPlayThrough
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onCanPlayThroughCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onChange
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onChangeCapture
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onClick
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onClickCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onCompositionEnd
- Type
CompositionEventHandler<any> & CompositionEventHandler<HTMLButtonElement>
onCompositionEndCapture
- Type
CompositionEventHandler<any> & CompositionEventHandler<HTMLButtonElement>
onCompositionStart
- Type
CompositionEventHandler<any> & CompositionEventHandler<HTMLButtonElement>
onCompositionStartCapture
- Type
CompositionEventHandler<any> & CompositionEventHandler<HTMLButtonElement>
onCompositionUpdate
- Type
CompositionEventHandler<any> & CompositionEventHandler<HTMLButtonElement>
onCompositionUpdateCapture
- Type
CompositionEventHandler<any> & CompositionEventHandler<HTMLButtonElement>
onContextMenu
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onContextMenuCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onCopy
- Type
ClipboardEventHandler<any> & ClipboardEventHandler<HTMLButtonElement>
onCopyCapture
- Type
ClipboardEventHandler<any> & ClipboardEventHandler<HTMLButtonElement>
onCut
- Type
ClipboardEventHandler<any> & ClipboardEventHandler<HTMLButtonElement>
onCutCapture
- Type
ClipboardEventHandler<any> & ClipboardEventHandler<HTMLButtonElement>
onDoubleClick
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onDoubleClickCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onDrag
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragEnd
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragEndCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragEnter
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragEnterCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragExit
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragExitCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragLeave
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragLeaveCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragOver
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragOverCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragStart
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDragStartCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDrop
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDropCapture
- Type
DragEventHandler<any> & DragEventHandler<HTMLButtonElement>
onDurationChange
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onDurationChangeCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onEmptied
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onEmptiedCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onEncrypted
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onEncryptedCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onEnded
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onEndedCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onError
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onErrorCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onFocus
- Type
FocusEventHandler<any> & FocusEventHandler<HTMLButtonElement>
onFocusCapture
- Type
FocusEventHandler<any> & FocusEventHandler<HTMLButtonElement>
onGotPointerCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onGotPointerCaptureCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onInput
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onInputCapture
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onInvalid
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onInvalidCapture
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onKeyDown
- Type
KeyboardEventHandler<any> & KeyboardEventHandler<HTMLButtonElement>
onKeyDownCapture
- Type
KeyboardEventHandler<any> & KeyboardEventHandler<HTMLButtonElement>
onKeyPress
- Type
KeyboardEventHandler<any> & KeyboardEventHandler<HTMLButtonElement>
onKeyPressCapture
- Type
KeyboardEventHandler<any> & KeyboardEventHandler<HTMLButtonElement>
onKeyUp
- Type
KeyboardEventHandler<any> & KeyboardEventHandler<HTMLButtonElement>
onKeyUpCapture
- Type
KeyboardEventHandler<any> & KeyboardEventHandler<HTMLButtonElement>
onLoad
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadedData
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadedDataCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadedMetadata
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadedMetadataCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadStart
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLoadStartCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onLostPointerCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onLostPointerCaptureCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onMouseDown
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseDownCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseEnter
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseLeave
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseMove
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseMoveCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseOut
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseOutCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseOver
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseOverCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseUp
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onMouseUpCapture
- Type
MouseEventHandler<any> & MouseEventHandler<HTMLButtonElement>
onPaste
- Type
ClipboardEventHandler<any> & ClipboardEventHandler<HTMLButtonElement>
onPasteCapture
- Type
ClipboardEventHandler<any> & ClipboardEventHandler<HTMLButtonElement>
onPause
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onPauseCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onPlay
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onPlayCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onPlaying
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onPlayingCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onPointerCancel
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerCancelCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerDown
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerDownCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerEnter
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerEnterCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerLeave
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerLeaveCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerMove
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerMoveCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerOut
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerOutCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerOver
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerOverCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerUp
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onPointerUpCapture
- Type
PointerEventHandler<any> & PointerEventHandler<HTMLButtonElement>
onProgress
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onProgressCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onRateChange
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onRateChangeCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onReset
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onResetCapture
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onResize
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onResizeCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onScroll
- Type
UIEventHandler<any> & UIEventHandler<HTMLButtonElement>
onScrollCapture
- Type
UIEventHandler<any> & UIEventHandler<HTMLButtonElement>
onSeeked
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSeekedCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSeeking
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSeekingCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSelect
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSelectCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onStalled
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onStalledCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSubmit
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onSubmitCapture
- Type
FormEventHandler<any> & FormEventHandler<HTMLButtonElement>
onSuspend
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onSuspendCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onTimeUpdate
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onTimeUpdateCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onTouchCancel
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchCancelCapture
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchEnd
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchEndCapture
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchMove
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchMoveCapture
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchStart
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTouchStartCapture
- Type
TouchEventHandler<any> & TouchEventHandler<HTMLButtonElement>
onTransitionEnd
- Type
TransitionEventHandler<any> & TransitionEventHandler<HTMLButtonElement>
onTransitionEndCapture
- Type
TransitionEventHandler<any> & TransitionEventHandler<HTMLButtonElement>
onVolumeChange
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onVolumeChangeCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onWaiting
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onWaitingCapture
- Type
ReactEventHandler<any> & ReactEventHandler<HTMLButtonElement>
onWheel
- Type
WheelEventHandler<any> & WheelEventHandler<HTMLButtonElement>
onWheelCapture
- Type
WheelEventHandler<any> & WheelEventHandler<HTMLButtonElement>
placeholder
- Type
string
prefix
- Type
string
property
- Type
string
radioGroup
- Type
string
ref
- Type
((instance: any) => void) | RefObject<any>
resource
- Type
string
results
- Type
number
role
- Type
AriaRole
security
- Type
string
slot
- Type
string
spellCheck
- Type
Booleanish
style
- Type
CSSProperties
suppressContentEditableWarning
- Type
boolean
suppressHydrationWarning
- Type
boolean
tabIndex
- Type
0 | -1
title
- Type
string
translate
- Type
"yes" | "no"
type
Use at least one submit
button per <form>
. Outside of forms use button
(default).
- Type
"reset" | "button" | "submit"
- Default
'button'
typeof
- Type
string
unselectable
- Type
"on" | "off"
unstable_arrowStyles
Arrow styles.
- Type
CSSProperties
unstable_clickOnEnter
Whether or not trigger click on pressing Enter.
- Type
boolean
unstable_clickOnSpace
Whether or not trigger click on pressing Space.
- Type
boolean
unstable_disclosureRef
- Type
MutableRefObject<HTMLElement | null>
unstable_moves
Stores the number of moves that have been performed by calling move
,
next
, previous
, up
, down
, first
or last
.
- Type
number
- Default
0
unstable_popoverStyles
Popover styles.
- Type
CSSProperties
unstable_referenceRef
The reference element.
- Type
RefObject<HTMLElement | null>
unstable_system
Options passed to reakit-system-*
- Type
any
value
- Type
string | number | readonly string[]
visible
Whether it's visible or not.
- Type
boolean
vocab
- Type
string
wrapElement
Function returned by the hook to wrap the element to which html props will be passed.
- Type
(element: ReactNode) => ReactNode