Reorderable listPro
Reorder by dragging the grip or with arrow keys: rows lift, neighbours slide and the position number rolls.
oxyn add reorderable-list- 1Ship pricing pageQueued after the current run
- 2Fix flaky auth testtests/auth.rs
- 3Write release notesv0.3.0
- 4Bump dependencies
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Reorder the agent queue, steps of a plan, or pinned items.
When not to use
- Messages typed while the agent works wait above the composer: use Queue stack instead.
- The agent's task list: use Todo list instead.
- On or off for things that apply right away: use Switch instead.
Installation
Reorderable list is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add reorderable-listUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Queue
An agent queue you can reorder.
- 1Ship pricing pageQueued after the current run
- 2Fix flaky auth testtests/auth.rs
- 3Write release notesv0.3.0
- 4Bump dependencies
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Editable
Removable rows (Oxyn plus).
- 1Ship pricing pageQueued after the current run
- 2Fix flaky auth testtests/auth.rs
- 3Write release notesv0.3.0
- 4Bump dependencies
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Plain
Without numbers.
- Ship pricing pageQueued after the current run
- Fix flaky auth testtests/auth.rs
- Write release notesv0.3.0
- Bump dependencies
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ReorderableList
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | Vec<ReorderItem> | — | Items. |
label | String | "Reorder items" | List label. |
numbered | bool | true | Show position numbers. |
removable | bool | Default::default() | Remove buttons. |
on_reorder | EventHandler<Vec<String>> | — | New order. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ↑ ↓ on a handle | Move that item one place |
Accessibility
- Handles are labelled “Reorder X. Position 1 of 4. Use arrow keys.”
- Focus stays on the moved handle; moves are announced.
From the spec
Grip: “Reorder Ship pricing page. Position 1 of 4. Use arrow keys.”; focus stays on the moved handle; a status region announces “moved to position 2 of 4”.
Motion & interaction
The dragged row follows the pointer and lifts; neighbours slide by one row on a spring; the position number rolls.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Neighbour slide | 220 ms | ease.out | instant |
| Number roll | 200 ms | ease.out | swap |
Responsive behaviour
- Only the grip starts a drag (touch-action none), so rows still scroll the page.
Edge cases (spec)
Only the grip starts a drag (touch-action none), so the rest of the row scrolls. Moving past either end clamps.
Notes for AI
- Import
ReorderableList,ReorderItemfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
ReorderListElinoxyn_gpui. - Props to set first:
items. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.