Pdf Toolbar Props reference
Props for PdfToolbar: the viewer API it controls, its labels and configuration, the compact layout and the page indicator slot.
Used by
Import
import type { PdfToolbarProps } from '@kingtech/react-pdf-viewer';Properties
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
api | PdfViewerApi | — | Yes | The viewer API, from a ref or renderToolbar. |
labels | Partial<PdfViewerLabels> | — | No | Label overrides. |
config | ToolbarConfig | — | No | Which actions to show. |
compact | boolean | — | No | Compact layout: hides hiddenWhenCompact actions outside fullscreen. |
locale | string | — | No | Locale for number formatting. |
zoomReset | boolean | false | No | The zoom label becomes a reset button. |
pageIndicator | ReactNode | — | No | Replaces the page indicator text, e.g. with your own input. |
menuPlacement | 'top' | 'bottom' | — | No | Where the More actions menu opens. PdfViewer picks the side away from the edge. |
Source
packages/react-pdf-viewer/src/components/Toolbar.tsx
Generated from content/react-pdf-viewer/reference/pdf-toolbar-props.schema.json. Do not edit by hand.