Page Highlight reference
Search highlighting for one page's text layer: the query to mark, and which of the page's matches is the selected one.
Used by
Import
import type { PageHighlight } from '@kingtech/react-pdf-viewer';Properties
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
query | string | — | Yes | Text to highlight, case-insensitive. |
selected | number | null | — | Yes | Index of the page’s match to mark as selected. |
Source
packages/react-pdf-viewer/src/hooks/usePageRenderer.ts
Generated from content/react-pdf-viewer/reference/page-highlight.schema.json. Do not edit by hand.