Reorderable List

Pro

Drag-to-reorder list: hold a row or its handle to lift it, and the others glide aside. It scrolls near the edges, can group one row into another, and works with keyboards and screen readers.

Preview

Installation

npx @lumioui/cli add pro/reorderable-list

Usage

import { ReorderableListHandle, ReorderableList } from "@/components/ui/reorderable-list/reorderable-list";
<ReorderableList />

Also exported: ReorderableListHandle.

Examples

Up next queue

A music player's Up Next.

Delivery route

A courier's morning route.

API reference

Prop Type Default
children React.ReactNode —
className string —