UNPKG

react-selectable-box

Version:

A React component used hooks that allows you to select elements in the drag area using the mouse

16 lines (15 loc) 410 B
import { Rule } from '../context'; interface UseSelectableProps<T> { value: T; disabled?: boolean; rule?: Rule; } export default function useSelectable<T>({ value, disabled, rule, }: UseSelectableProps<T>): { setNodeRef: (ref: HTMLElement | null) => void; isSelecting: boolean; isRemoving: boolean; isSelected: boolean; isAdding: boolean; isDragging: boolean; }; export {};