Components/SortableList
Universal Component

SortableList

HTML5 Drag & Drop

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

SortableList

HTML5 Drag & Drop

import { ref } from 'vue' const list = ref([ { id: 'one', title: 'One' }, { id: 'two', title: 'Two' }, { id: 'three', title: 'Three' }, { id: 'four', title: 'Four' }, ])

Basic Usage

SortableList

Demo loads on client.

API

Props

PropTypeDefaultDescription
modelValueSortableListItem[]TextDescription for modelValue.
disabledbooleanfalseDescription for disabled.
handlebooleanfalseDescription for handle.

Events

EventParamsDescription
update:modelValue(value)Description for update:modelValue.
reorder({ from, to, items })Description for reorder.
Was this helpful?