react-dnd
Version:
Drag and Drop for React
15 lines (14 loc) • 455 B
TypeScript
import * as React from 'react';
import { BackendFactory, DragDropManager } from 'dnd-core';
export declare type DndProviderProps<BackendContext, BackendOptions> = {
manager: DragDropManager;
} | {
backend: BackendFactory;
context?: BackendContext;
options?: BackendOptions;
debugMode?: boolean;
};
/**
* A React component that provides the React-DnD context
*/
export declare const DndProvider: React.FC<DndProviderProps<any, any>>;