@huridocs/react-text-selection-handler
Version:
React pdf handler allows to render a PDF and handle text selection and highlights.
10 lines • 406 B
TypeScript
import React, { FunctionComponent } from 'react';
import { TextSelection } from './TextSelection';
interface SelectionHandlerProps {
onSelect: (textSelection: TextSelection) => any;
onDeselect?: () => any;
children?: React.ReactNode;
}
declare const HandleTextSelection: FunctionComponent<SelectionHandlerProps>;
export { HandleTextSelection };
//# sourceMappingURL=HandleTextSelection.d.ts.map