Skip to content

Navigation

Pagination

Bundle size
1.49 KB
3.0.0

Set of page navigation elements, with links that lead to specific pages and navigation buttons for the previous and next page.

This component is our take on the Pagination developed and maintained by Shadcn.

Terminal window
pnpm add @inpulse-ui/pagination

Defines a link that can be clicked to navigate to a different page.

PropTypeDefault ValueRequired
asChildbooleanfalseNo
hrefstring-No

Wrap all pagination elements inside the Pagination component. The PaginationContent component is used to group the pagination items, while each individual item is wrapped in a PaginationItem. The PaginationLink component is used for the page links, and the PaginationPrevious and PaginationNext components are used for navigation buttons.

<Pagination>
<PaginationContent>
<PaginationItem>
<PaginationPrevious href="#" />
</PaginationItem>
<PaginationItem>
<PaginationLink href="#">1</PaginationLink>
</PaginationItem>
<PaginationItem>
<PaginationLink href="#">2</PaginationLink>
</PaginationItem>
<PaginationItem>
<PaginationNext href="#" />
</PaginationItem>
</PaginationContent>
</Pagination>

If the pagination has more than “x” levels, we recommend inserting the PaginationEllipsis subcomponent (which displays the ellipsis icon) to indicate that there are more results.

Project

Built with by Jo Santana in Brazil.

© 2026 Inpulse. All rights reserved.