Skip to main content
Defines a page layout with margins, page size, headers, and footers.

Props

PropTypeDescription
childrenReactNodeContent, headers, footers
marginsMarginOptionsPage margins
pageSizePageSizeOptionsPage dimensions and orientation
classNamestringTailwind classes

Margins

Defaults: 1 inch on all sides, 0.5 inch for header/footer, 0 for gutter.

Page size


Units

Margins and page sizes accept:
  • 1 or "1in" (inches)
  • "2.5cm" (centimeters)
  • "25mm" (millimeters)
  • "72pt" (points)
  • "10%" (percentage of page dimension)

Headers and footers

Headers and footers can contain paragraphs, headings, text, and page numbers.

Page numbers


Multiple sections

Each section starts on a new page with its own settings:

Full example