UNPKG

@servicetitan/assist-ui

Version:

ServiceTitan Assist UI Components

18 lines 503 B
import { MouseEvent } from 'react'; export interface UseDraggableProps { initialX?: number; initialY?: number; minVisible?: number; width?: number; } export interface Position { x: number; y: number; } export declare const useDraggable: ({ initialX, initialY, minVisible, width, }?: UseDraggableProps) => { position: Position; isDragging: boolean; handleMouseDown: (e: MouseEvent) => void; resetPosition: () => void; }; //# sourceMappingURL=use-draggable.d.ts.map