react-selectable-fast
Version:
Enable other React components to be selectable by drawing a box with your mouse/touch
6 lines (5 loc) • 364 B
TypeScript
import React from 'react';
import { TSelectableItemState, TSelectableItemProps } from './Selectable.types';
export declare const createSelectable: <T extends any>(WrappedComponent: React.ComponentType<TSelectableItemState & {
selectableRef(node: HTMLElement | null): void;
} & T>) => React.ComponentType<T & Partial<Pick<TSelectableItemProps, "isSelected">>>;