Skip to content
React PDF Viewer

Search

defaultLabels reference

The default English labels for every user-visible string and accessible name. Override any subset with the labels prop.

Used by

Import

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

Signature: const defaultLabels: PdfViewerLabels

Properties

NameTypeDefaultRequiredDescription
viewerstring'PDF viewer'YesAccessible name of the viewer region.
toolbarstring'PDF controls'YesAccessible name of the toolbar.
documentstring'Document'YesAccessible name of the scrollable document area.
zoomOutstring'Zoom out'YesButton.
zoomInstring'Zoom in'YesButton.
zoomLevel(percent: number, context: LabelContext) => stringfunctionYesZoom label text.
resetZoomstring'Reset zoom'YesReset-zoom button (with zoomReset) and menu item.
previousPagestring'Previous page'YesButton.
nextPagestring'Next page'YesButton.
pageIndicator(page: number, total: number, context: LabelContext) => stringfunctionYesPage label text.
pageAriaLabel(page: number, total: number, context: LabelContext) => stringfunctionYesAccessible name of each page.
pageInputstring'Page number'YesAccessible name of the page-number input.
enterFullscreenstring'Enter fullscreen'YesFullscreen button outside fullscreen.
exitFullscreenstring'Exit fullscreen'YesFullscreen button in fullscreen.
rotatestring'Rotate PDF'YesButton.
downloadstring'Download PDF'YesButton.
printstring'Print PDF'YesButton.
moreActionsstring'More actions'YesOverflow menu button shown when the toolbar is too narrow.
loadingstring'Loading PDF...'YesLoading view text.
retrystring'Retry'YesRetry button of the error view.
emptystring'No document'YesAnnounced when there is no document.
printProgress(done: number, total: number, context: LabelContext) => stringfunctionYesPrint preparation status.
cancelstring'Cancel'YesCancels print preparation.
passwordPromptstring'This document is password protected'YesPassword form heading.
passwordLabelstring'Password'YesPassword field label.
passwordSubmitstring'Open'YesPassword submit button.
passwordIncorrectstring'Incorrect password. Please try again.'YesShown after a wrong password.
thumbnailsstring'Pages'YesAccessible name of the thumbnails sidebar.
searchResults(current: number, total: number, context: LabelContext) => stringfunctionYesSearch result status.
searchPreviousstring'Previous match'YesSearch button.
searchNextstring'Next match'YesSearch button.
searchNoResultsstring'No matches'YesShown when nothing matches.

Source

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

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