Pagination
Page navigation for large result sets. Compose previous, next, numbered links, and ellipses to match the amount of available content.
Best for
Import
import { Pagination } from "@enadhq/enad-react-sdk/client/ui-resolver"When to use it
Use Pagination when a result set is too large to show on one page and visitors need controls to move through numbered pages. It is standard at the bottom of product listing grids, search results, order history tables, and any paginated API response.
If the content uses infinite scroll or cursor-based loading, pagination controls are not the right fit. Use InfiniteScroll instead.
Slot strategy
Pagination is a flat list composition:
Paginationis the root<nav>element.PaginationContentis the flex row that holds all items.PaginationItemwraps each control in the row.PaginationLinkis a numbered page link. SetisActiveon the current page to highlight it.PaginationPreviousandPaginationNextare directional controls with built-in arrow icons and labels.PaginationEllipsisindicates skipped pages between visible numbers.
Behavior and theming guidance
PaginationLink renders as a button-sized link with hover and active states. The isActive variant applies the primary background color to mark the current page.
PaginationPrevious and PaginationNext include text labels ("Previous" and "Next") alongside their arrow icons. On narrow screens, consider hiding the text with a responsive utility and keeping only the arrows.
The whole bar centers itself horizontally by default with justify-center. Override the justify class on PaginationContent if you need left-aligned or right-aligned pagination in a specific layout.
Examples
Live examples you can edit directly in the sandbox.
Basic page navigation
A compact pagination bar with previous/next controls, three numbered links, and an ellipsis for the remaining pages.
Larger result set
For deep result sets, show the first page, the current neighborhood, and the last page with ellipses on both sides.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.