Skip to content
React PDF Viewer

Search

PdfToolbarProps 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

NameTypeDefaultRequiredDescription
apiPdfViewerApi—YesThe viewer API, from a ref or renderToolbar.
labelsPartial<PdfViewerLabels>—NoLabel overrides.
configToolbarConfig—NoWhich actions to show.
compactboolean—NoCompact layout: hides hiddenWhenCompact actions outside fullscreen.
localestring—NoLocale for number formatting.
zoomResetbooleanfalseNoThe zoom label becomes a reset button.
pageIndicatorReactNode—NoReplaces the page indicator text, e.g. with your own input.
menuPlacement'top' | 'bottom'—NoWhere 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.