Skip to content
zenui/react-hooks

useDraggable

Drag an element with mouse, touch or pen, with axis locking, bounds and grid snapping. Arrow keys move the focused element, so dragging also works from the keyboard.

Level
Advanced
Since
v2.1.0
import {useDraggable} from '@zenuilabs/react-hooks';
Loading demo_

More in Interaction