Event triggered by the keyboard
Valid traversable elements of the container
Optional
isActiveElement: ((element: Element) => boolean)Callback to determine if a given element from the navigable elements array is the active element of the page
Optional
getFocusableElement: ((element: Element) => Element)Callback returning the focusable element of a given element from the navigable elements array
Optional
validSiblingTags: string[]Valid sibling tags that horizontal arrow handling will focus
Optional
noVerticalArrowHandling: booleanFlag indicating that the included vertical arrow key handling should be ignored
Optional
noHorizontalArrowHandling: booleanFlag indicating that the included horizontal arrow key handling should be ignored
Optional
updateTabIndex: booleanFlag indicating that the tabIndex of the currently focused element and next focused element should be updated, in the case of using a roving tabIndex
Optional
onlyTraverseSiblings: booleanFlag indicating that next focusable element of a horizontal movement will be this element's sibling
This function is a helper for handling basic arrow keyboard interactions. If a component already has its own key handler and event start up/tear down, this function may be easier to integrate in over the full component.