Skip to content
React PDF Viewer

Search

ToolbarConfig reference

Toolbar customization: where the toolbar sits, which controls it shows and in which order, and which it hides on narrow screens.

Used by

Import

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

Properties

NameTypeDefaultRequiredDescription
position'top' | 'bottom''bottom'NoToolbar placement (below the page by default).
actionsreadonly ToolbarAction[]all actionsNoActions to show. Their order within each group is fixed.
hiddenWhenCompactreadonly ToolbarAction[]['rotate', 'print']NoActions hidden in compact, non-fullscreen mode.

Source

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

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