Components
Basic usage
Header only
Footer only
Both
Page numbers
ThePageNumber component inserts dynamic page numbers.
Current page
Total pages
Both (current of total)
Custom format
Styling
Headers and footers support Tailwind classes and inherit text classes from theirSection and Document. They accept the same content as a section: paragraphs, headings, tables, lists and images.
Right-aligned header
Centered footer with styling
Multiple lines
Header/footer spacing
Control distance from page edge with margin options:First and even pages
type chooses the pages a header or footer appears on:
A section may have one header and one footer of each type. When a section defines only some types, pages of the missing types use the default header or footer (Word itself would leave them blank).
Allowed content
Headers and footers accept the same content as a section: paragraphs, headings, lists, tables and images. Text classes on theSection and Document apply inside them.
