UNPKG

@minoru/react-dnd-treeview

Version:

A draggable / droppable React-based treeview component.

4 lines (3 loc) 328 B
import type { DragElementWrapper, DragSourceOptions, DragPreviewOptions } from "react-dnd"; import type { NodeModel } from "../types"; export declare const useDragNode: <T>(item: NodeModel<T>, ref: React.RefObject<HTMLElement | null>) => [boolean, DragElementWrapper<DragSourceOptions>, DragElementWrapper<DragPreviewOptions>];