Toolbar Action reference
Identifies a toolbar control, for choosing which controls the toolbar shows and in which order through ToolbarConfig.
Used by
Import
import type { ToolbarAction } from '@kingtech/react-pdf-viewer';Signature: type ToolbarAction = 'zoomOut' | 'zoomLevel' | 'zoomIn' | 'previousPage' | 'pageIndicator' | 'nextPage' | 'fullscreen' | 'rotate' | 'download' | 'print'
Properties
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
zoomOut | 'zoomOut' | — | No | Zoom out button. Zoom group. |
zoomLevel | 'zoomLevel' | — | No | Zoom percentage; a reset button with zoomReset. Zoom group. |
zoomIn | 'zoomIn' | — | No | Zoom in button. Zoom group. |
previousPage | 'previousPage' | — | No | Previous page button. Page group. |
pageIndicator | 'pageIndicator' | — | No | Current page and total; an input with pageInput. Page group. |
nextPage | 'nextPage' | — | No | Next page button. Page group. |
fullscreen | 'fullscreen' | — | No | Enter / exit fullscreen. Actions group. |
rotate | 'rotate' | — | No | Rotate 90° clockwise. Actions group. |
download | 'download' | — | No | Save the loaded document. Actions group. |
print | 'print' | — | No | Print according to printMode. Actions group. |
Source
packages/react-pdf-viewer/src/types.ts
Generated from content/react-pdf-viewer/reference/toolbar-action.schema.json. Do not edit by hand.