ComponentsVariables

PageNumber

Returns the current page number.

Support

Client-side
Server-side

Preview

1import { PageNumber } from "@fileforge/react-print";
2
3<PageNumber counterStyle="decimal" />;

Examples

Custom Style

You can use a custom CSS counter-style, by passing a known name or a custom counter style.

1import { PageNumber } from "@fileforge/react-print";
2
3<PageNumber counterStyle="lower-roman" />;