Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA vertical list reordered by dragging a handle or from the keyboard, with spring layout motion and screen reader announcements.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
| Prop | Type | Default | Description |
|---|---|---|---|
items | T[] | - | The items, in their current order. |
onReorder | (items: T[]) => void | - | Called with the new order after a drag or a keyboard move. |
getKey | (item: T) => string | - | A stable, unique key per item. |
getLabel | (item: T) => string | getKey | Plain-text name used in handle labels and announcements. |
renderItem | (item: T, state: SortableItemState) => ReactNode | - | Renders a row body. State has index, dragging, grabbed. |
itemClassName | string | - | Class names for each row. |
className | string | - | Class names for the list. |
Also accepts ul props such as aria-label and aria-labelledby.
aria-describedby.aria-pressed="true"), the arrow keys move it, Home and End jump to the ends, Space or Enter drops it and Escape restores the original order.