Skip to content

Sortable list

Reorder rows by drag or keyboard.

In use

  • Build
  • Test
  • Lint
  • Deploy
Code
// Drag a row by its grip, or focus the grip and use Arrow Up, Arrow Down, Home and End.
<SortableList label="Steps" items={steps} getId={s => s.id} itemLabel={s => s.name} renderItem={s => s.name} onReorder={setSteps} />