Skip to main content
Headers and footers that repeat on every page of a section.

Components


Basic usage

Header only

Both


Page numbers

The PageNumber component inserts dynamic page numbers.

Current page

Outputs: 1, 2, 3…

Total pages

Outputs the total page count.

Both (current of total)

Outputs: “Page 1 of 10”

Custom format

Outputs: “1 / 10”
Outputs: ”- 1 -“

Styling

Headers and footers support Tailwind classes.

Right-aligned header

Multiple lines


Header/footer spacing

Control distance from page edge with margin options:

Allowed content

Headers and footers can contain:

Common patterns

Document title + page number

Company branding

Left and right aligned (using tabs)


Different headers per section

Each section has its own header/footer. Use multiple sections for different headers:

Full example