UNPKG

@cimpress/react-components

Version:
19 lines 744 B
import React from 'react'; import { DraggableProvided, DraggableStateSnapshot } from 'react-beautiful-dnd'; import { Subtract } from 'utility-types'; export interface WithDraggableProps { index: number; draggableId: string; isDragDisabled?: boolean; showPlaceholderWhileDragging?: boolean; icon: React.ComponentType<{ size?: string; }>; style?: React.CSSProperties; } export type InjectedDraggableProps = { snapshot: DraggableStateSnapshot; provided: DraggableProvided; }; export declare const withDraggable: <P extends InjectedDraggableProps>(WrappedComponent: React.ComponentType<P>) => React.FC<Subtract<P, InjectedDraggableProps> & WithDraggableProps>; //# sourceMappingURL=withDraggable.d.ts.map