Footer component provides an easy way to add page numbers and custom footers to your documents. It’s built on top of the MarginBox component with additional features for page numbering.
Usage
Props
Function | React.ReactNode
Content to render in the footer. Can be either:
- A function that receives
{ currentPage, totalPages }elements - A React node for static content
- Omitted to use the default page numbering template
MarginBoxPosition
default:"'bottom-center'"
Footer position. Inherits all position options from MarginBox component.
'all' | 'even' | 'odd' | 'blank'
default:"'all'"
Controls which pages the footer appears on.
string
Custom CSS classes to apply to the footer.
React.CSSProperties
Custom inline styles for the footer content.
React.CSSProperties
Custom styles applied to the MarginBox wrapper.