Components
← All components

Roving Tabindex

stimeo--roving

Turns a row of items into a single Tab stop, moved through with the arrow keys.

  • Core

Makes a group of buttons or tabs stop the Tab key just once, with the arrow keys moving inside it. A group of twenty items becomes one stop instead of twenty. It handles left and right for a row, up and down for a column, or both. Home and End jump to the ends. At an end you choose whether it wraps around or stops. When focus arrives by a click or from your own code, the Tab stop follows it. Items added later need no setup of their own.

running

Tab into the group once, then move between the buttons with the arrow keys. Home and End jump to the ends.

Keyboard

KeyAction
→ / ← Move to the next / previous item (horizontal or both orientation). Under RTL the two swap.
↓ / ↑ Move to the next / previous item (vertical or both orientation).
Home / End Move to the first / last reachable item (when homeEnd is on).
Ctrl+Home / Ctrl+End and the like A modified Home/End is left to the browser, not consumed.