@kindly/react-selectable-fast
Version:
Enable other React components to be selectable by drawing a box with your mouse/touch
17 lines (16 loc) • 614 B
TypeScript
import React, { Component, ReactNode } from 'react';
import { ReactComponentLike } from 'prop-types';
declare type TDeselectAllButton = {
children: ReactNode;
component?: ReactComponentLike;
className?: string;
[key: string]: any;
};
declare class DeselectAllButton extends Component<TDeselectAllButton> {
static contextType: React.Context<import("./Selectable.types").TSelectableGroupContext>;
root: HTMLDivElement | null;
componentDidMount(): void;
getRootRef: (ref: import("./utils").Maybe<HTMLDivElement>) => void;
render(): JSX.Element;
}
export default DeselectAllButton;