useWindowDrag
Returns the props that make an element a drag handle.
@internote/canvas-sdk/reactOn this page
import { useWindowDrag } from '@internote/canvas-sdk/react';#Signature
(handlers: WindowDragHandlers): WindowDragProps#Parameters
handlersWhat the drag reports to.
#Example
const drag = useWindowDrag({ onMove: (_, { dy }) => setHeight(start - dy) });
<div className="handle" {...drag} />Declared in packages/canvas-sdk/src/react/gestures/use-window-drag.ts:77.