Components
Shell
Display content in other page regions.
PageTop
Support
Client-side
Server-side
Displays content in the top of all the pages.
This component should be placed as early as possible in the document and will apply to all subsequent pages.
Examples
Preview
CurrentPageTop
Support
Client-side
Server-side
Displays content in the top of the current page.
This component will override the content of the PageTop
component for the current page.
import { CurrentPageTop } from "@onedoc/react-print";
PageBottom
Support
Client-side
Server-side
Displays content in the bottom of all the pages.
Examples
Preview
PageBreak
Support
Client-side
Server-side
Forces a page break.
import { PageBreak } from "@onedoc/react-print";
NoBreak
Support
Client-side
Server-side
Prevents a page break. Wrap this component around content that should not be broken across pages.
import { NoBreak } from "@onedoc/react-print";
FloatBottom
Support
Client-side
Server-side
Floats the content to the bottom of the page.