Transform and constrain drag movement.
DndContext
as well as DragOverlay
.
DndContext
and DragOverlay
can both have different modifiers.
createSnapModifier
@dnd-kit/modifiers
: https://github.com/clauderic/dnd-kit/tree/master/packages/modifiers/src
For example, here is an implementation to create a modifier to snap to grid: