Sortable List
Sortable lists let users reorder content directly, which is useful for queues, priorities, and editorial workflows.
Installation
Add the sortable list component to your project:
Usage
Default List
Sortable List
Live preview rendered from the registry in an isolated iframe.
Loading preview...
Failed to load preview
Sortable List
Full preview from the registry iframe.
Loading preview...
Without Handle
Sortable List
Live preview rendered from the registry in an isolated iframe.
Loading preview...
Failed to load preview
Sortable List
Full preview from the registry iframe.
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items |
array |
[] |
Ordered items rendered in the list |
itemKey |
string |
'id' |
Property used as the unique item key |
handle |
bool |
true |
Enables a visible drag handle |
animation |
int |
150 |
Drag animation duration |
ghostClass |
string |
'opacity-50' |
Class applied to the ghost item |
dragClass |
string |
'shadow-lg' |
Class applied while an item is dragged |
disabled |
bool |
false |
Disables sorting |
Next Steps
- Explore Table component
- Learn about tabs component
- View Toggle component