Sortable List
Drag to reorder a list in React with Motion Reorder, plus Arrow key reordering from the handle and polite announcements of every move for screen readers.
src/registry/ui/sortable-list.tsx/r/sortable-list.json
Installation#
bash
npx shadcn@latest add https://ui.minidev.pro/r/sortable-list.json
Usage#
tsx
import { SortableList } from "@/components/ui/sortable-list"
export function Example() {
return <SortableList />
}
API reference#
| Prop | Type | Default |
|---|---|---|
items | Item[] | DEMO |
onReorder | (items: Item[]) => void | - |
className | string | - |
Dependencies#
npm
lucide-reactmotion
Built from
No other MiniDev files
Related workflow components#
Approval CardReact request card for approval workflows showing the requester avatar, title and summary, with Reject and Approve buttons wired to your callbacks.Assign PickerAssignee picker for tasks and tickets: a listbox of people with initials avatars, where the selected person is highlighted and choices report their id.Comment ThreadThreaded React comment list with initials avatars, author name, timestamp and body in bordered bubbles. Pairs with the comment composer.Due Date ChipSmall Tailwind due date chip with a calendar icon that switches to a red border and icon when overdue. Use it on task cards, tickets and boards.Gantt RowOne row of a Gantt timeline: a task label beside a track with a bar placed by start and end values on a shared scale. Stack rows to build a React roadmap.Issue CardA compact issue tracker card with a monospace ticket key, status and priority badges, a title and an assignee line. Fits Linear or Jira style boards.
All kanban, timeline and workflow components