Function: useDnD()
useDnD<
DragData
,DropData
>():DnDContextType
<DragData
,DropData
>
Defined in: hooks/useDnD.ts:15
Hook to access the drag and drop context. This hook provides access to the monitor, drag state, and shared values.
Type Parameters
DragData
DragData
extends object
The type of data being dragged
DropData
DropData
extends object
= DragData
The type of data for drop targets (defaults to DragData)
Returns
DnDContextType
<DragData
, DropData
>
The drag and drop context with monitor and state