A draggable list for putting your own items in order
pnpm dlx shadcn@latest add https://notchset.dev/r/reorderable-list.jsonA person's own list put in order by drag, the row's menu as the keyboard twin.
Every shadcn style · one file
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Card } from "@/components/ui/notchset/card";
import { ReorderableList, type ReorderableItem } from "@/components/ui/notchset/reorderable-list";
/*
* A sales pipeline's stages, put in order by hand: drag a stage by its grip and the others make room; let go and it
* lands where you left it; Esc puts it back. Each stage's ⋯ moves it up, down or to the top, and Alt with ↑ or ↓
* moves the focused stage. The line under it says the order as it is now; the knob shows each stage's deal count.
*/
const STAGES: ReorderableItem[] = [
{ id: "lead", label: "Lead", detail: "24" },
{ id: "qualified", label: "Qualified", detail: "16" },
{ id: "proposal", label: "Proposal", detail: "9" },
{ id: "negotiation", label: "Negotiation", detail: "5" },
{ id: "won", label: "Won", detail: "12" },
];
export default function ReorderableListDemo() {
const counts = true;
const [stages, setStages] = React.useState(STAGES);
return (
<div className="flex w-[min(100%,var(--ns-width-sm))] flex-col gap-3">
<Card inset className="p-1">
<ReorderableList label="Pipeline stages" items={counts ? stages : stages.map(({ detail: _, ...s }) => s)} onReorder={(next) => setStages(next.map((s) => STAGES.find((x) => x.id === s.id)!))} />
</Card>
<p className="m-0 truncate text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{stages.map((s) => s.label).join(" → ")}</p>
</div>
);
}"use client";
import * as React from "react";
import { Card } from "@/components/ui/notchset/card";
import { ReorderableList, type ReorderableItem } from "@/components/ui/notchset/reorderable-list";
/*
* A sales pipeline's stages, put in order by hand: drag a stage by its grip and the others make room; let go and it
* lands where you left it; Esc puts it back. Each stage's ⋯ moves it up, down or to the top, and Alt with ↑ or ↓
* moves the focused stage. The line under it says the order as it is now; the knob shows each stage's deal count.
*/
const STAGES: ReorderableItem[] = [
{ id: "lead", label: "Lead", detail: "24" },
{ id: "qualified", label: "Qualified", detail: "16" },
{ id: "proposal", label: "Proposal", detail: "9" },
{ id: "negotiation", label: "Negotiation", detail: "5" },
{ id: "won", label: "Won", detail: "12" },
];
export default function ReorderableListDemo() {
const counts = true;
const [stages, setStages] = React.useState(STAGES);
return (
<div className="flex w-[min(100%,var(--ns-width-sm))] flex-col gap-3">
<Card inset className="p-1">
<ReorderableList label="Pipeline stages" items={counts ? stages : stages.map(({ detail: _, ...s }) => s)} onReorder={(next) => setStages(next.map((s) => STAGES.find((x) => x.id === s.id)!))} />
</Card>
<p className="m-0 truncate text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{stages.map((s) => s.label).join(" → ")}</p>
</div>
);
}This example also uses Card. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add https://notchset.dev/r/reorderable-list.json https://notchset.dev/r/card.jsoncomponents/ui/notchset/reorderable-list.tsx
LevelOrganism: made of molecules or blocks.
Made ofIcon button,Menu
Free, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
pnpm add lucide-react@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
items–
readonly ReorderableItem[]the rows, in the person's order
onReorder–
(items: ReorderableItem[]) => voidthe new order, after a drag or a move from the menu or the keys
label–
stringwhat the list is ("Pipeline stages"), for screen readers
labels–
Partial<ReorderableListLabels>its built-in words, English by default
Three usesa pipeline's stages in settings · a board's statuses · a person's saved views
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.1.0 · 2026-11-17
Ships motion.ts (EASE), which it now uses.
v1.0.0 · 2026-11-09
Released free with the Notchset system.