DndContext
as well as DragOverlay
.DndContext
and DragOverlay
can both have different modifiers.restrictToHorizontalAxis
restrictToVerticalAxis
restrictToWindowEdges
DragOverlay
from being moved outside of the bounds of the window.restrictToParentElement
restrictToFirstScrollableAncestor
createSnapModifier
@dnd-kit/modifiers
: https://github.com/clauderic/dnd-kit/tree/master/packages/modifiers/src