Components
← All components

Sortable

stimeo--sortable

Reordering that works from the keyboard and with a screen reader too.

  • Core

Lets a list be reordered by pointer and by keyboard alike. With a pointer, items swap as you cross the middle of a neighbour, so where it will land is always visible. From the keyboard, Space picks an item up, the arrow keys move it one position at a time, and Space puts it down, while Esc returns it to where it started. Every step is announced, with wording such as "picked up Card A, position 2 of 5" that you can write per language. The row of handles is a single Tab stop. Only a drop that actually changed the order reports where the item came from and where it went.

running

Drag a row by its handle, or use the keyboard: Tab to a handle, move between handles with the arrow keys, Space to pick up, up and down to move it, Space again to drop. Esc cancels.

  • Write the release notes
  • Fix the login redirect
  • Review the design draft
  • Update the dependencies

Keyboard

KeyAction
Space / Enter Grab the focused handle's item, or drop it (dispatching reorder if the position changed).
↑ / ↓ While grabbed, move the item one position (vertical orientation; clamped at the ends).
Esc Cancel — the item returns to its pickup position.