Detect user input and translate it into drag and drop operations.
@dnd-kit/dom
package provides a set of built-in sensors that can be used to detect user input in the browser:
Sensor
class:
bind(source: Draggable)
: Bind sensor to draggable elementenable()
: Enable the sensordisable()
: Disable the sensorisDisabled()
: Check if sensor is disableddestroy()
: Clean up sensor resourcesconfigure(options)
: Create a configured sensor descriptor