Skip to main content

Interface: GridPaginationProps

Defined in: components/GridPagination.tsx:13

Properties

className?

optional className?: string

Defined in: components/GridPagination.tsx:47

Extra CSS class applied to the root element.


labels?

optional labels?: Record<string, string>

Defined in: components/GridPagination.tsx:44

Label overrides for the text inside the component. Supported keys: previous, next, page, of


onPageChange

onPageChange: (page) => void

Defined in: components/GridPagination.tsx:24

Called when the user navigates to a different page. Receives the newly selected page number (1-based).

Parameters

page

number

Returns

void


products

products: ProductsResponse

Defined in: components/GridPagination.tsx:18

A ProductsResponse object for populating the pagination component. Reads page (current page), pages (total pages) from the response.


siblingCount?

optional siblingCount?: number

Defined in: components/GridPagination.tsx:38

Number of visible page buttons rendered around the current page in 'full' style. Defaults to 5.


variant?

optional variant?: string

Defined in: components/GridPagination.tsx:32

Pagination display variant. 'compact' — Previous / "Page X of Y" / Next. 'full' — numbered page buttons with ellipsis collapsing + Previous / Next. Defaults to 'compact'.