# Draggable

The Draggable component is an dragging component that allows user to display list of items that can be reordered.

# Usage

Use v-model to pass array of sortable list to component. Every list element should have unique id. To display elements item slot should be used.

# Variants

Use variant="sleek" to hide the borders and only show drag handles on hover.

# Disabled State

Use disabled to disable or enable sorting of the draggable element items.

# Errors

Use the error prop to give your draggable an error state. Pass in a string to show a message.

# Alignment

Use alignment to change alignment of draggable items. Available options are ['center', 'start', 'end']

# Slots

Use item slot to pass item template that will be used for all items in list.

If actions are needed for item actions slot should be used.

If a footer is needed, use the footer slot which will render at the bottom of the list but before error messages.

# Events

Event Args Emitted when...
@update Sorted list Sorting order is changed
Last Updated: 3/28/2025, 4:22:32 PM