UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

9 lines (8 loc) 361 B
import { type RefObject } from 'react'; import { type CallbackSetter } from './shared/types'; export interface UseDropZoneResult { readonly isOver: boolean; readonly onDrop: CallbackSetter<DragEvent>; } declare const useDropZone: <TElement extends HTMLElement>(targetRef: RefObject<TElement>) => Readonly<UseDropZoneResult>; export default useDropZone;