Pdf Toolbar reference
The default toolbar: zoom, page navigation, fullscreen, rotate, download and print, on one row.
When the row does not fit, secondary actions collapse into a “More actions” menu. Usable on its own, for example inside renderToolbar.
Used by
Import
import { PdfToolbar } from '@kingtech/react-pdf-viewer';Props
| 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.schema.json. Do not edit by hand.