Usage
TheuseDraggable composable requires a unique id and an element template ref. It returns reactive computed properties for the drag state.
Input
All input properties accept plain values or Vue refs/getters (MaybeRefOrGetter), so they can be reactive.
A unique identifier for this draggable instance.
A template ref pointing to the draggable element.
A template ref for a drag handle. When set, only this element activates dragging.
Whether the draggable is disabled.
An array of plugin descriptors for per-entity plugin configuration. Use
Plugin.configure() to create descriptors. For example, Feedback.configure({ feedback: 'clone' }).Modifiers to apply to this draggable instance.
Sensors to use for this draggable instance.
Custom data to attach to this draggable instance.
Output
Whether this element is currently being dragged (visually).
Whether this element is in the process of being dropped (animating to final position).
Whether this element is the source of the current drag operation.
The underlying
Draggable instance.Guides
Rendering a drag overlay
You can render a completely different element while the draggable element is being dragged by using the<DragOverlay> component.

<DragOverlay> component will only render its children when a drag operation is in progress. This can be useful for rendering a completely different element while the draggable element is being dragged.
To render different content depending on which element is being dragged, use the scoped slot to access the drag source: