UNPKG

@minoru/react-dnd-treeview

Version:

A draggable / droppable React-based treeview component.

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