Skip to content
React PDF Viewer

Search

PdfViewerLabels reference

Every user-visible string and accessible name. Defaults are English; override any subset through the labels prop.

Used by

Import

import type { PdfViewerLabels } from '@kingtech/react-pdf-viewer';

Properties

NameTypeDefaultRequiredDescription
viewerstring—YesAccessible name of the viewer region.
toolbarstring—YesAccessible name of the toolbar.
documentstring—YesAccessible name of the scrollable document area.
zoomOutstring—YesButton.
zoomInstring—YesButton.
zoomLevel(percent: number, context: LabelContext) => string—YesZoom label text.
resetZoomstring—YesReset-zoom button (with zoomReset) and menu item.
previousPagestring—YesButton.
nextPagestring—YesButton.
pageIndicator(page: number, total: number, context: LabelContext) => string—YesPage label text.
pageAriaLabel(page: number, total: number, context: LabelContext) => string—YesAccessible name of each page.
pageInputstring—YesAccessible name of the page-number input.
enterFullscreenstring—YesFullscreen button outside fullscreen.
exitFullscreenstring—YesFullscreen button in fullscreen.
rotatestring—YesButton.
downloadstring—YesButton.
printstring—YesButton.
moreActionsstring—YesOverflow menu button shown when the toolbar is too narrow.
loadingstring—YesLoading view text.
retrystring—YesRetry button of the error view.
emptystring—YesAnnounced when there is no document.
printProgress(done: number, total: number, context: LabelContext) => string—YesPrint preparation status.
cancelstring—YesCancels print preparation.
passwordPromptstring—YesPassword form heading.
passwordLabelstring—YesPassword field label.
passwordSubmitstring—YesPassword submit button.
passwordIncorrectstring—YesShown after a wrong password.
thumbnailsstring—YesAccessible name of the thumbnails sidebar.
searchResults(current: number, total: number, context: LabelContext) => string—YesSearch result status.
searchPreviousstring—YesSearch button.
searchNextstring—YesSearch button.
searchNoResultsstring—YesShown when nothing matches.

Source

packages/react-pdf-viewer/src/labels.ts

Generated from content/react-pdf-viewer/reference/pdf-viewer-labels.schema.json. Do not edit by hand.