react-pdf-builder
Version:
Build beautiful PDF documents in React.
11 lines (10 loc) • 700 B
TypeScript
import React from 'react';
import { ThemedTextProps } from '../basics/ThemedText';
export interface PageNumberProps extends ThemedTextProps {
/** Optional. Customize how the page number string is displayed with a template string containing `%n` for the current page number, `%t` for the total number of pages, `%sn` for the sub page number, or `%st` for the sub pages total. Default format is `"%n / %t"`. */
format?: string;
}
/**
* Read the [full documentation for PageNumber](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-pagenumber--docs)
*/
export declare const PageNumber: ({ className, style, ...props }: PageNumberProps) => React.JSX.Element;