Skip to main content
zerotal

Documentation


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

Interface: PaginationProps

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

Indexable

[key: string]: unknown

Properties

page

page: number

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

Current page, 1-based.


lastPage

lastPage: number

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


href

href: (page) => string

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

Build the URL for a page.

Parameters

page

number

Returns

string


siblings?

optional siblings?: number

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

How many numbered links to show around the current page. Odd numbers centre the current page; even ones lean left.


total?

optional total?: number

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

Total row count, shown as "1–20 of 431" when perPage is also given.


perPage?

optional perPage?: number

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


class?

optional class?: string

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