• Parameters

    • props: {
          cssSelectionColor?: string;
          enableAreaSelection?: (event: MouseEvent) => boolean;
          highlights: Highlights;
          layerBackgroundColor?: string;
          layerScrolledToBackgroundColor?: string;
          pdfDocument?: PDFDocumentProxy;
          pdfViewer?: PDFViewer;
          renderHighlightLayer: () => Element;
      } & { children?: ReactNode } & RefAttributes<HighlighterRef>
      • OptionalcssSelectionColor?: string

        CSS selection highlight color

        "rgba(255, 226, 143, 0.5)"
        
      • OptionalenableAreaSelection?: (event: MouseEvent) => boolean

        Area selection enablement control

      • highlights: Highlights

        Collection of highlight data

        []
        
      • OptionallayerBackgroundColor?: string

        Background color for highlight layers

        "rgba(255, 226, 143, 0.5)"
        
      • OptionallayerScrolledToBackgroundColor?: string

        Background color when scrolled to a highlight

        "rgba(255, 226, 143, 0.8)"
        
      • OptionalpdfDocument?: PDFDocumentProxy

        PDF document proxy instance (from PDF.js)

      • OptionalpdfViewer?: PDFViewer

        PDF viewer instance (from PDF.js)

      • renderHighlightLayer: () => Element

        Render function for highlight overlay layer

      • Optionalchildren?: ReactNode

    Returns ReactNode

Properties

$$typeof: symbol
defaultProps?: Partial<
    {
        cssSelectionColor?: string;
        enableAreaSelection?: (event: MouseEvent) => boolean;
        highlights: Highlights;
        layerBackgroundColor?: string;
        layerScrolledToBackgroundColor?: string;
        pdfDocument?: PDFDocumentProxy;
        pdfViewer?: PDFViewer;
        renderHighlightLayer: () => Element;
    } & { children?: ReactNode } & RefAttributes<HighlighterRef>,
>
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: WeakValidationMap<
    {
        cssSelectionColor?: string;
        enableAreaSelection?: (event: MouseEvent) => boolean;
        highlights: Highlights;
        layerBackgroundColor?: string;
        layerScrolledToBackgroundColor?: string;
        pdfDocument?: PDFDocumentProxy;
        pdfViewer?: PDFViewer;
        renderHighlightLayer: () => Element;
    } & { children?: ReactNode } & RefAttributes<HighlighterRef>,
>