UNPKG

react-beautiful-dragify

Version:

React drag and drop library alternatie of react-beautiful-dnd

18 lines (17 loc) 610 B
/// <reference types="react" /> import type { DroppableOptions } from '../types/types'; export declare const useDroppable: (options: DroppableOptions) => { droppableProps: { ref: import("react").MutableRefObject<HTMLElement | null>; 'data-droppable': string; 'data-type': string; 'data-direction': "vertical" | "horizontal"; onDragOver: (e: React.DragEvent) => void; onDrop: (e: React.DragEvent) => void; onDragLeave: (e: React.DragEvent) => void; style: { position: "relative"; overflow: string; }; }; };