Description
Shadcn Link Pagination is a pagination component for Next.js and shadcn/ui that moves between pages with the Next.js Link component. It writes the current page and page size into the URL as search parameters, such as page and limit, so each page of results has its own address. A navigationMode option switches the component to router.push() instead of links, which the site says lets you show a loading indicator while the page changes. The demo shows a simple example with 500 items and 20 per page, a version with a single item, a version with many pages and a version with a rows-per-page selector. The code sample is an async page that reads the page and page size from the search params, fetches the data and passes the total count to the pagination component. The site says the layout uses shadcn pagination components. The source is on GitHub, and the demo has a button to reset all pagination.…
Highlights
- Pagination built on the Next.js Link component
- Page and page size stored as URL search params
- navigationMode option for router.push() with loading state
- Rows-per-page selector example
- Built with shadcn/ui pagination components
Ratings & Reviews
No ratings yet
Be the first to rate nextjs-link-pagination.
People also visit
nextjs-link-pagination FAQ
What is it?
A pagination component for Next.js and shadcn/ui that navigates between pages with the Next.js Link component.
How is the current page stored?
The page and page size are written into the URL as search parameters, so each page has its own link.
Can it show a loading state?
Yes. Set navigationMode to router to use router.push() instead of links, which the site says enables loading indicators.
Where is the code?
The site links to the component's GitHub repository.
What are the best nextjs-link-pagination alternatives?
Popular alternatives to nextjs-link-pagination include react-js-pagination, react-responsive-pagination and react-paginate. See all nextjs-link-pagination alternatives








