Sortable List
A vertical drag-and-drop list component for reordering items.
Basic Usage
Bind an array to v-model. Drag the handles to reorder.
Design Homepage
Write Documentation
Fix Navigation Bug
Update Dependencies
MayaSortableList API
| Prop / Event | Type | Default | Description |
|---|---|---|---|
v-model | Array | [] | The array of items to render and sort. |
itemKey | String | Function | null | Key property or function to uniquely identify items (for Vue tracking). |
@change | Event | — | Emitted when a drop completes: { list, movedItem, oldIndex, newIndex }. |
#item | Slot | — | Custom rendering for the list item. Props: { item, index }. |