UNPKG

@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration

Version:

An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop

12 lines (11 loc) 440 B
import { type RefObject } from 'react'; import type { Direction } from 'react-beautiful-dnd'; import { type DraggableData } from '../draggable/data'; export declare function useDropTargetForDraggable({ elementRef, data, direction, contextId, isDropDisabled, type, }: { elementRef: RefObject<HTMLElement>; data: DraggableData; direction: Direction; contextId: string; isDropDisabled: boolean; type: string; }): void;