@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
22 lines (21 loc) • 728 B
TypeScript
import { type Provider } from 'react';
import type { Direction, DroppableMode } from 'react-beautiful-dnd';
export type DroppableContextProps = {
direction: Direction;
droppableId: string;
shouldRenderCloneWhileDragging: boolean;
isDropDisabled: boolean;
type: string;
mode: DroppableMode;
};
export declare const DroppableContextProvider: Provider<DroppableContextProps | null>;
/**
* Intended for use by `<Draggable>` instances.
*/
export declare function useDroppableContext(): DroppableContextProps;
/**
* Returns the `droppableId` of the parent droppable, if there is one.
*
* Intended for use only by `<Droppable>` instances.
*/
export declare function useParentDroppableId(): string | null;