# defaultLabels reference

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

## Used by

- [Labels and locale](https://react-pdf-viewer-chi.vercel.app/react-pdf-viewer/labels.md)

## Import

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

Signature: `const defaultLabels: PdfViewerLabels`

## Properties

| Name | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `viewer` | `string` | `'PDF viewer'` | Yes | Accessible name of the viewer region. |
| `toolbar` | `string` | `'PDF controls'` | Yes | Accessible name of the toolbar. |
| `document` | `string` | `'Document'` | Yes | Accessible name of the scrollable document area. |
| `zoomOut` | `string` | `'Zoom out'` | Yes | Button. |
| `zoomIn` | `string` | `'Zoom in'` | Yes | Button. |
| `zoomLevel` | `(percent: number, context: LabelContext) => string` | `function` | Yes | Zoom label text. |
| `resetZoom` | `string` | `'Reset zoom'` | Yes | Reset-zoom button (with `zoomReset`) and menu item. |
| `previousPage` | `string` | `'Previous page'` | Yes | Button. |
| `nextPage` | `string` | `'Next page'` | Yes | Button. |
| `pageIndicator` | `(page: number, total: number, context: LabelContext) => string` | `function` | Yes | Page label text. |
| `pageAriaLabel` | `(page: number, total: number, context: LabelContext) => string` | `function` | Yes | Accessible name of each page. |
| `pageInput` | `string` | `'Page number'` | Yes | Accessible name of the page-number input. |
| `enterFullscreen` | `string` | `'Enter fullscreen'` | Yes | Fullscreen button outside fullscreen. |
| `exitFullscreen` | `string` | `'Exit fullscreen'` | Yes | Fullscreen button in fullscreen. |
| `rotate` | `string` | `'Rotate PDF'` | Yes | Button. |
| `download` | `string` | `'Download PDF'` | Yes | Button. |
| `print` | `string` | `'Print PDF'` | Yes | Button. |
| `moreActions` | `string` | `'More actions'` | Yes | Overflow menu button shown when the toolbar is too narrow. |
| `loading` | `string` | `'Loading PDF...'` | Yes | Loading view text. |
| `retry` | `string` | `'Retry'` | Yes | Retry button of the error view. |
| `empty` | `string` | `'No document'` | Yes | Announced when there is no document. |
| `printProgress` | `(done: number, total: number, context: LabelContext) => string` | `function` | Yes | Print preparation status. |
| `cancel` | `string` | `'Cancel'` | Yes | Cancels print preparation. |
| `passwordPrompt` | `string` | `'This document is password protected'` | Yes | Password form heading. |
| `passwordLabel` | `string` | `'Password'` | Yes | Password field label. |
| `passwordSubmit` | `string` | `'Open'` | Yes | Password submit button. |
| `passwordIncorrect` | `string` | `'Incorrect password. Please try again.'` | Yes | Shown after a wrong password. |
| `thumbnails` | `string` | `'Pages'` | Yes | Accessible name of the thumbnails sidebar. |
| `search` | `string` | `'Search in document'` | Yes | Accessible name of the search field. |
| `searchResults` | `(current: number, total: number, context: LabelContext) => string` | `function` | Yes | Search result status. |
| `searchPrevious` | `string` | `'Previous match'` | Yes | Search button. |
| `searchNext` | `string` | `'Next match'` | Yes | Search button. |
| `searchNoResults` | `string` | `'No matches'` | Yes | Shown when nothing matches. |

## Source

[packages/react-pdf-viewer/src/labels.ts](https://github.com/kiralygyula92/react-pdf-viewer/blob/main/packages/react-pdf-viewer/src/labels.ts#L64)

