Skip to content
React PDF Viewer

Search

ToolbarAction 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

NameTypeDefaultRequiredDescription
zoomOut'zoomOut'—NoZoom out button. Zoom group.
zoomLevel'zoomLevel'—NoZoom percentage; a reset button with zoomReset. Zoom group.
zoomIn'zoomIn'—NoZoom in button. Zoom group.
previousPage'previousPage'—NoPrevious page button. Page group.
pageIndicator'pageIndicator'—NoCurrent page and total; an input with pageInput. Page group.
nextPage'nextPage'—NoNext page button. Page group.
fullscreen'fullscreen'—NoEnter / exit fullscreen. Actions group.
rotate'rotate'—NoRotate 90° clockwise. Actions group.
download'download'—NoSave the loaded document. Actions group.
print'print'—NoPrint 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.