UNPKG

@minoru/react-dnd-treeview

Version:

A draggable / droppable React-based treeview component.

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