UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

9 lines (8 loc) 327 B
/// <reference types="react" /> import type { BasicTarget } from "./utils/dom-target"; export interface Options { onDragStart?: (event: React.DragEvent) => void; onDragEnd?: (event: React.DragEvent) => void; } declare const useDrag: <T>(data: T, target: BasicTarget, options?: Options) => void; export default useDrag;