layout Which arrow keys move focus. Required. | row•column•grid | — |
itemCount How many items the selector matches. Required. | number | — |
columns Row width for the grid layout. | number | 8 |
onSelect Called on Enter or Space. | (index: number) => void | — |
onFocusChange Called whenever focus moves. | (index: number) => void | — |
wrap Carry focus from the last item to the first. | boolean | true |
initialFocusedIndex Index focused on mount. -1 means none. | number | -1 |
itemSelector How navigable children are found. | string | role=option, data-value, button, tabindex |
autoFocus Focus the first item on mount. | boolean | false |
disabled Stop handling keys. | boolean | false |
disableHighlighting Skip applying the highlighted state to items. | boolean | false |
trapFocus Wrap the region in a FocusTrap. | boolean | false |
focusTrapActive Whether that trap is active. | boolean | true |
onEscape Escape handler, passed to the trap. | () => void | — |
autoFocusTrap Let the trap move focus in when it activates. | boolean | true |
restoreFocus Let the trap return focus when it deactivates. | boolean | true |
role ARIA role for the container, e.g. listbox or menu. | string | — |
| string | — |
| React.ReactNode | — |
| string | — |
| React.CSSProperties | — |