Skip to main content

Usage

The useDragDropMonitor hook allows you to monitor drag and drop events within a DragDropProvider:
Make sure to use the useDragDropMonitor hook within a component that is wrapped in a DragDropProvider component.

Events

Notes

  • The hook must be used within a DragDropProvider
  • Event handlers receive both the event data and the manager instance
  • Use event.preventDefault() on preventable events to stop their default behavior
  • The dragEnd event includes a canceled property that replaces the old onDragCancel event