UNPKG

693 BTypeScriptView Raw
1import type { BasicTarget } from '../utils/domTarget';
2export interface Options {
3 onFiles?: (files: File[], event?: React.DragEvent) => void;
4 onUri?: (url: string, event?: React.DragEvent) => void;
5 onDom?: (content: any, event?: React.DragEvent) => void;
6 onText?: (text: string, event?: React.ClipboardEvent) => void;
7 onDragEnter?: (event?: React.DragEvent) => void;
8 onDragOver?: (event?: React.DragEvent) => void;
9 onDragLeave?: (event?: React.DragEvent) => void;
10 onDrop?: (event?: React.DragEvent) => void;
11 onPaste?: (event?: React.ClipboardEvent) => void;
12}
13declare const useDrop: (target: BasicTarget, options?: Options) => void;
14export default useDrop;