Components
Sortable
A drag-and-drop sortable component designed for seamless item organization across customizable columns.
Loading
Installation
pnpm dlx shadcn@latest add https://reui.io/r/sortable.json
Examples
Grid
Loading
Nested
Loading
API Reference
The Sortable component is a flexible drag-and-drop component for organizing items in lists. Below is the complete API reference:
Sortable
The root Sortable component includes the following props:
Prop | Type | Default |
---|---|---|
value | ||
onValueChange | ||
getItemValue | ||
children | ||
className | ||
onMove | ||
strategy | ||
onDragStart | ||
onDragEnd |
SortableItem
A draggable item in the sortable list.
Prop | Type | Default |
---|---|---|
value | ||
asChild | ||
className | ||
children | ||
disabled |
SortableItemHandle
A drag handle for an item.
Prop | Type | Default |
---|---|---|
asChild | ||
className | ||
children | ||
cursor |
Credits
- Built with DndKit.