UNPKG

@wordpress/compose

Version:
9 lines 521 B
import type { UseDropZoneProps } from './types'; /** * A hook to facilitate drag and drop handling. * * @param {UseDropZoneProps} props Hook options * @return Ref callback to be passed to the drop zone element. */ export default function useDropZone({ dropZoneElement, isDisabled, onDrop: _onDrop, onDragStart: _onDragStart, onDragEnter: _onDragEnter, onDragLeave: _onDragLeave, onDragEnd: _onDragEnd, onDragOver: _onDragOver, }: UseDropZoneProps): React.RefCallback<HTMLElement>; //# sourceMappingURL=index.d.ts.map