UNPKG

@kindly/react-selectable-fast

Version:

Enable other React components to be selectable by drawing a box with your mouse/touch

23 lines (22 loc) 608 B
import { Component } from 'react'; declare type TSelectboxProps = { fixedPosition: boolean; className: string; }; declare class Selectbox extends Component<TSelectboxProps> { static defaultProps: { className: string; }; state: { y: number; x: number; width: number; height: number; isSelecting: boolean; }; selectbox: HTMLDivElement | null; getRef: () => import("./utils").Maybe<HTMLDivElement>; getSelectboxRef: (ref: import("./utils").Maybe<HTMLDivElement>) => void; render(): JSX.Element; } export default Selectbox;