shadcn.io is not affiliated with official shadcn/ui
Pagination examples · Navigation
Previous and Next Only Pagination for React
Only Previous and Next buttons, for paging through a feed or a long list.
Just Previous and Next, with no page numbers. Use it for feeds, articles split into pages, and cursor-based lists where the total isn't known.
Preview
Installation
FAQ
What does this row render?
PaginationPrevious and PaginationNext, each in a PaginationItem. There is no PaginationLink and no page number.
What are the accessible names?
Previous is "Go to previous page" and Next is "Go to next page". The visible text defaults to "Previous" and "Next", in a span with hidden sm:block. The chevrons are aria-hidden. The nav is labeled "pagination".
How do I change the words?
Pass text on PaginationPrevious and PaginationNext. The icon stays, and the accessible name stays "Go to previous page" or "Go to next page" unless you override aria-label.
Related
- With Page Counter PaginationPrevious and Next around a Page 2 of 10
- With Previous and Next PaginationThree page numbers between Previous and
- With First and Last PaginationFirst, Previous, the current page, Next
- Simple Page Numbers PaginationThree page numbers with page 2 as the
- First and Last PaginationFirst and Last links on either side of
- Both Ellipsis PaginationPagination on page 6 of 20, with an