react-selectable-fast
Version:
Enable other React components to be selectable by drawing a box with your mouse/touch
20 lines (19 loc) • 551 B
TypeScript
import React from 'react';
export declare type TSetSelectboxState = React.Dispatch<React.SetStateAction<TSelectboxState>>;
export declare type TSelectboxProps = {
fixedPosition: boolean;
className: string;
getSetState(setState: TSetSelectboxState): void;
};
export declare type TSelectboxState = {
y: number;
x: number;
width: number;
height: number;
};
export declare function Selectbox(props: TSelectboxProps): JSX.Element;
export declare namespace Selectbox {
var defaultProps: {
className: string;
};
}