wise-ui

Data & Lists

Backgrounds

Cards

Navigation

Text

Buttons

Layout

Reorderable List

Drag-and-drop sortable list with smooth layout animations. Supports full-card or handle-based dragging.

Design system tokens

high

Define color, spacing, and typography tokens for the component library.

Set up CI pipeline

medium

Configure GitHub Actions for automated testing and deployment.

Write documentation

low

Create usage guides and API references for each component.

Accessibility audit

high

Review all components for WCAG 2.1 AA compliance.

Performance benchmarks

medium

Measure render times and bundle sizes across components.

Dark mode polish

low

Fine-tune contrast ratios and color mappings for dark theme.

Installation

npx shadcn@latest add https://wise-ui.com/r/reorderable-list.json

Props

PropTypeDefaultDescription
itemsT[]-Array of items to render. Each must have a unique `id` field.
onReorder(items: T[]) => void-Callback when items are reordered via drag-and-drop.
renderItem(item: T, index: number) => ReactNode-Render function for each sortable item.
gapnumber8Gap between items in pixels.
dragTarget"card" | "handle""card"Whether the entire card is draggable or only a drag handle.
classNamestring-Class applied to the list container.
itemClassNamestring-Class applied to each sortable item wrapper.