UNPKG

@minoru/react-dnd-treeview

Version:

A draggable / droppable React-based treeview component.

4 lines (3 loc) 293 B
import type { RefObject } from "react"; import type { DragElementWrapper, DragSourceOptions } from "react-dnd"; export declare const useDragHandle: (containerRef: RefObject<HTMLElement | null>, handleRef: RefObject<HTMLDivElement | null>, drag: DragElementWrapper<DragSourceOptions>) => void;