UNPKG

tdesign-react

Version:
17 lines (16 loc) 385 B
export interface Coordinate { x: number; y: number; } interface DraggableCallback { (coordinate: Coordinate, event?: MouseEvent): void; } interface DraggableProps { start?: DraggableCallback; drag?: DraggableCallback; end?: DraggableCallback; } declare const useDrag: (ref: any, options: DraggableProps) => { isDragging: boolean; }; export default useDrag;