Launch sale — 60% off Pro
Contact
PaginationNavigation

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Pagination - First and Last

A boundary-focused pagination with First and Last buttons flanking the active page number for dataset edge navigation

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Jump to the edges instantly. This React pagination shows First button, active page 5, and Last button using PaginationLink with custom padding (px-2.5)—boundary navigation without sequential controls. Built with shadcn/ui Pagination and Radix UI primitives, it emphasizes dataset boundaries—perfect for comparison tasks (first vs last items), reference checking (start and end), audit trails, or any navigation where users frequently jump to boundaries rather than browsing sequentially.

Pattern created by @haydenbleasel

Installation

Questions you might have