Properties of the pagesOf method.

interface Props {
    page: number;
    total: number;
    siblings?: number;
    boundaries?: number;
}

Properties

page: number

Zero-indexed current page.

total: number

Total count of pages.

siblings?: number

How many pages to show around the current one.

boundaries?: number

How many pages to show at the beginning and end.