react-pdf-highlighter-extended

Interface MonitoredHighlightContainerProps

The props type for MonitoredHighlightContainer.

interface MonitoredHighlightContainerProps {
    children: ReactNode;
    highlightTip?: Tip;
    onMouseEnter?(): void;
    onMouseLeave?(): void;
}

Properties

children: ReactNode

Component to monitor mouse activity over. This should be a highlight within the PdfHighlighter.

highlightTip?: Tip

What tip to automatically display whenever a mouse hovers over a highlight. The tip will persist even as the user puts their mouse over it and not the highlight, but will disappear once it no longer hovers both.

Methods