@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
13 lines (12 loc) • 583 B
TypeScript
import type { DraggingStyle, NotDraggingStyle } from 'react-beautiful-dnd';
import type { DraggableDimensions } from '../hooks/use-captured-dimensions';
import type { DraggableState } from './state';
export declare const notDraggingStyle: NotDraggingStyle;
/**
* Returns the styles which should be provided to the draggable via the
* `draggableProps` API.
*/
export declare function getDraggableProvidedStyle({ draggableDimensions, draggableState, }: {
draggableDimensions: DraggableDimensions | null;
draggableState: DraggableState;
}): DraggingStyle | NotDraggingStyle;