UNPKG

itm-holding-package

Version:

ITM HOLDING PACKAGES

17 lines (16 loc) 497 B
interface Position { x: number; y: number; } interface UseDraggableProps { initialPosition?: Position; boundaryElement?: HTMLElement | null; onPositionChange?: (position: Position) => void; } interface UseDraggableReturn { position: Position; isDragging: boolean; elementRef: React.RefObject<HTMLDivElement | null>; } export declare const useDraggable: ({ initialPosition, boundaryElement, onPositionChange, }?: UseDraggableProps) => UseDraggableReturn; export {};