Skip to content

UseOffsetPaginationResult

UseOffsetPaginationResult<T> = object

Defined in: packages/pagination/src/use-offset-pagination.ts:16

Return value of the useOffsetPagination hook.

T

The item type in the paginated list.

currentPage: number

Defined in: packages/pagination/src/use-offset-pagination.ts:24

The current 1-based page number.


goToPage: (page) => void

Defined in: packages/pagination/src/use-offset-pagination.ts:26

Navigates to the given 1-based page number by updating the URL search params.

number

void


items: T[]

Defined in: packages/pagination/src/use-offset-pagination.ts:18

Items for the current page.


total: number

Defined in: packages/pagination/src/use-offset-pagination.ts:20

Total number of items across all pages.


totalPages: number

Defined in: packages/pagination/src/use-offset-pagination.ts:22

Total number of pages available.