Skip to content
Back

Reorderable listPro

Reorder by dragging the grip or with arrow keys: rows lift, neighbours slide and the position number rolls.

oxyn add reorderable-list
  1. 1
    Ship pricing page
    Queued after the current run
  2. 2
    Fix flaky auth test
    tests/auth.rs
  3. 3
    Write release notes
    v0.3.0
  4. 4
    Bump dependencies
The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add reorderable-list

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Queue

An agent queue you can reorder.

  1. 1
    Ship pricing page
    Queued after the current run
  2. 2
    Fix flaky auth test
    tests/auth.rs
  3. 3
    Write release notes
    v0.3.0
  4. 4
    Bump dependencies
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Editable

Removable rows (Oxyn plus).

  1. 1
    Ship pricing page
    Queued after the current run
  2. 2
    Fix flaky auth test
    tests/auth.rs
  3. 3
    Write release notes
    v0.3.0
  4. 4
    Bump dependencies
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Plain

Without numbers.

  1. Ship pricing page
    Queued after the current run
  2. Fix flaky auth test
    tests/auth.rs
  3. Write release notes
    v0.3.0
  4. Bump dependencies
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

ReorderableList

PropTypeDefaultDescription
itemsrequiredVec<ReorderItem>—Items.
labelString"Reorder items"List label.
numberedbooltrueShow position numbers.
removableboolDefault::default()Remove buttons.
on_reorderEventHandler<Vec<String>>—New order.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
↑ ↓ on a handleMove 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
TransitionDurationEasingReduced motion
Neighbour slide220 msease.outinstant
Number roll200 msease.outswap

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, ReorderItem from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: ReorderListEl in oxyn_gpui.
  • Props to set first: items.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI