Viewer.Root creates the ViewerState: zoom and fit modes, scroll mode and columns, rotation, page theme, navigation and the text selection. Viewer.Viewport scrolls, Viewer.Pages lays the pages out and each Viewer.Page hosts its layers.
Anatomy
Usage
Guides: Viewer & layout, Navigation & focus, Page themes.
API reference
Viewer.Root
Renders a <div> (or your element via child) and accepts its HTML attributes.
data-columnsdata-page-framedata-page-themedata-pdf-viewerdata-statusdata-themeViewer.Viewport
Renders a <div> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Viewer.Pages
Renders a <div> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Viewer.Page
Renders a <div> (or your element via child) and accepts its HTML attributes.
Viewer.Canvas
Renders a <div> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Viewer.TextLayer
Renders a <div> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Viewer.Focus
Renders a <div> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
data-highlightdata-pdf-focusdata-pdf-focus-clipViewer.LinkLayer
Renders a <div> (or your element via child) and accepts its HTML attributes.
data-kinddata-pdf-linkdata-pdf-link-layerViewer.LinkPreview
Renders a <div> (or your element via child) and accepts its HTML attributes.
data-force-mountdata-kinddata-loadingdata-partdata-pdf-link-previewdata-pdf-link-preview-canvasdata-stateViewer.BackButton
Renders a <button> (or your element via child) and accepts its HTML attributes.
data-pdf-back-buttondata-state