Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow-ui / index / paginationRange

Function: paginationRange()

paginationRange(page, lastPage, siblings?): (number | null)[]

Defined in: flow-ui/src/components/Pagination.tsx:43

The page numbers to draw, with null marking a gap.

First and last are always present so the ends of the list stay one click away, which is what people reach for far more often than page 96.

Parameters

page

number

lastPage

number

siblings?

number = 5

Returns

(number | null)[]