VerticalDraggableList
Drag all over me.
Example
Business name
Product Name
Progress
Rating
Props
đšī¸ standard props
items { id: string; name: string; }[]
An array of draggable items.
[]class string
Additional CSS classes for item containers.
''đ¨ style props
--vertical-draggable-list-item-padding size
Defines the row padding.
8pxSlots
itemSnippet
Custom rendering snippet for each draggable item.
Default content:
{item.name}Available variables:
| Name | Type | Description |
|---|---|---|
item | { id: string; name: string; } | The item being rendered. |
Events
onchangeOrder
Triggered when the order of items changes.
| Attribute | Type | Description |
|---|---|---|
| items | { id: string; name: string; }[] | The updated list of items in the new order. |