Drag & Reorder
Column Reorder Table
A small plans table built from four columns: drag a header to lift a column, the others slide aside and a marker shows the slot; arrow keys move it too.
csslight complexitymoderate motionpointer+keyboardaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Keep place() as the single reorder function used by drag, keys and the demo. Column names, values and the accent are safe to change.
Safe to edit
- tokens
- labels
- data
Keep intact
- demo-v1 idle demo and takeover
- theme hook
- reduced-motion and visibilitychange guards
- nx50- prefix
Known limitations
- Columns are separate elements, not a native table.
More Drag & Reorder components
- Kanban MoveThree-column kanban board where a verdigris card lifts and spring-animates between lanes via FLIP. Idle demo stops after first input; supports arrow keys,…
- Pull to RefreshA 5-row canvas list springs down on drag, revealing diagonal bars and a rotating geometric indicator in verdigris and red; releasing past threshold…
- Sortable Grid3x3 grid of colored numbered tiles that spring-animate into position as tiles are dragged or swapped; initial idle shuffle stops after first input.
- Dual RangeCanvas dual-range slider with two spring-driven thumbs (white lo, amber hi), hatched fill, delta readout, and tick marks. Initial breathing stops after…
- Carousel ThrowSeven colored cards orbit a ringed hub in a radial ring; drag to fling with angular inertia, release to snap to the nearest card under the marker.
- Drag HandleA vertical list of dark rows with grip handles that lift, take a teal ring and spring into place when dragged or arrow-keyed to reorder.