Skip to Content
Navigation & Menus@hacline/ui/pagination

Pagination

Navigate paginated results while highlighting the active page.

Usage

Click page numbers or previous/next controls. The PaginationList render callback yields visible pages and ellipses near the current page, and onPageChange loads the next slice.

Results page 1 of 12

Paginating from Total Count

Provide total and pageSize to compute page bounds, then jump across ranges with first and last controls.

Parts

PartDescription
PaginationEllipsis
A gap in the range. Hidden from screen readers, since the links around it say which pages there are. Shows "…" unless it has children.
PaginationFirst
Goes to the first page. aria-disabled there.
PaginationItem
One entry in the list, around a link, a step or an ellipsis.
PaginationLast
Goes to the last page. aria-disabled there.
PaginationLink
A page. The current one has aria-current="page". Shows its number unless it has children.
PaginationList
The list of pages and steps. Its children can be a function of the state, whose items are the pages to show.
PaginationNext
Goes to the next page. aria-disabled on the last page, where it stays focusable.
PaginationPrevious
Goes to the previous page. aria-disabled on the first page, where it stays focusable.

Props

Prop

Type

View UI SDK parts and state attributes.