@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
10 lines (9 loc) • 317 B
TypeScript
export type DraggableDimensions = {
rect: DOMRect;
margin: string;
};
export declare function getDraggableDimensions(element: HTMLElement): DraggableDimensions;
/**
* Returns the captured dimensions of the item being dragged.
*/
export declare function useDraggableDimensions(): DraggableDimensions | null;