react-fatless-form
Version:
A lightweight React form package designed for simplicity that simplifies form handling and validation without unnecessary complexity or bloat.
11 lines (10 loc) • 356 B
TypeScript
type UseDragAndDropProps = {
handleFiles: (files: FileList) => void;
};
export declare function useDragAndDrop({ handleFiles }: UseDragAndDropProps): {
isDragging: boolean;
handleDragOver: (e: React.DragEvent<HTMLDivElement>) => void;
handleDragLeave: () => void;
handleDrop: (e: React.DragEvent<HTMLDivElement>) => void;
};
export {};