useFileDropArea
Handle the user file uploading, dropping, and pasting to an area element.
Drop images to this box!
Type Definitions
const useFileDropArea: <T extends HTMLElement = HTMLDivElement>(args?: {
ref?: React.RefObject<T> | null;
handler?: (files: File[]) => any | Promise<any>;
multiple?: boolean;
}) => React.RefObject<T>;