DragEvent

Defines the arguments passed during a drag event in the Draggable component.

Props

The following table outlines the props for the Draggable component:

NameTypeDefaultDescription
cancel
boolean
false

If set to true, the default drag action will be prevented.

element
HTMLElement
-

Specifies the current element being dragged.

event
MouseEvent & TouchEvent
-

Specifies the actual event that triggered the drag action.

target
HTMLElement
-

Specifies the current target element involved in the drag operation.