@huridocs/react-text-selection-handler
Version:
React pdf handler allows to render a PDF and handle text selection and highlights.
6 lines • 394 B
JavaScript
import React from 'react';
export const SelectionRegionContext = React.createContext('');
const SelectionRegion = ({ regionId = 'selectionRegion', children, }) => (React.createElement(SelectionRegionContext.Provider, { value: regionId },
React.createElement("div", { "data-region-selector-id": regionId }, children)));
export { SelectionRegion };
//# sourceMappingURL=SelectionRegion.js.map