Pagination

Pagination with page navigation, next and previous links.

Page 1 of 20

Installation

CLI

Install the component using the StarUI CLI:

star add pagination

Examples

Paginated Table

Table rows controlled by a shared page signal via data_show. The result count and disabled states update reactively. [Signal, data_show, Table]

Title Director Year
Stalker Tarkovsky 1979
Solaris Tarkovsky 1972
Fellini 1963
La Dolce Vita Fellini 1960
Showing 1–4 of 12

Content Navigation

Article-style prev/next with real links. For URL-based navigation, use plain Nav and A elements instead of the Pagination component.

With Primitives

Custom layout from PaginationLink primitives with reactive active states. First/last buttons that SimplePagination doesn't provide.

Page 1 of 5

API Reference

Component Description
SimplePagination Convenience wrapper that auto-generates page numbers, ellipsis, and prev/next controls
Pagination Root navigation container with role='navigation' and aria label
PaginationContent Flex container (ul) for pagination items
PaginationItem List item wrapper (li) for each pagination element
PaginationLink Clickable page number link with active state and signal binding
PaginationPrevious Previous page button with chevron icon and optional text label
PaginationNext Next page button with chevron icon and optional text label
PaginationEllipsis Ellipsis indicator for skipped page ranges with sr-only label