useRovingFocus

Arrow-key navigation through a group of items, the WAI-ARIA way: the arrows of the orientation, Home and End, optional wrap and type-ahead, disabled items skipped. Roving tabindex for tabs and toolbars (one Tab stop), or an active index for a listbox or combobox where focus stays in an input. Select, the docs tabs, the preset switcher and the ⌘K palette use it.

Install: pnpm add-composable useRovingFocus

Toolbar and listbox

Tab into the toolbar once, then use the arrows. In the listbox, focus stays on the list and aria-activedescendant moves; type "bl" to land on Blackberry, then Blueberry.

API