The component-based alternative to the useArrowKeysNavigation hook.
Enables arrow-key navigation within an enclosing FocusScope.
const containerRef = useRef(null);<FocusScope containerRef={containerRef}> <ArrowKeysNavigation> <div ref={containerRef}> <input /> </div> </ArrowKeysNavigation></FocusScope> Copy
const containerRef = useRef(null);<FocusScope containerRef={containerRef}> <ArrowKeysNavigation> <div ref={containerRef}> <input /> </div> </ArrowKeysNavigation></FocusScope>
The component-based alternative to the useArrowKeysNavigation hook.
Enables arrow-key navigation within an enclosing FocusScope.