Skip to content

DataSortableList ​

A list that can be reordered with the pointer and with the keyboard, with announcements for screen readers.

ts
import { DataSortableList } from '@zairakai/vue-components/Data'

Usage ​

vue
<DataSortableList />

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuearrayundefinedThe items, in order.
itemKeystringThe property that identifies an item. The item itself when empty.
labelstring
handleLabelstring'Reorder {item}'
grabbedTextstring'{item} grabbed, position {position} of {total}. Use the arrows to move it.'What is read to a screen reader. Use {item}, {position}, {total}.
movedTextstring'{item} moved to position {position} of {total}.'
droppedTextstring'{item} dropped at position {position} of {total}.'
cancelledTextstring'Move cancelled.'
itemLabelfunc(item) => String(item?.label ?? item)

Events ​

NameDescription
update:modelValue
reorder

Slots ​

NameDescription
handle
default

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.