Anatomy
Copy to clipboard
Usage
PageNav.Input commits on Enter or blur, reverts on Escape and selects its content on focus. In single-page mode with several columns, Prev and Next move a whole spread. Page labels (roman numerals for front matter) come from viewer.document.pageLabel(n).
API reference
PageNav.Prev
Renders a <button> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Data attributes
data-pdf-page-prevPageNav.Next
Renders a <button> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Data attributes
data-pdf-page-nextPageNav.Input
Renders a <input> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Data attributes
data-pdf-page-input