Skip to content

Pagination

Free

Page links for a long list, such as orders or search results, with Previous and Next. The row keeps its width as you move.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put one PaginationItem per link, and mark the current page with isActive.

orders-pagination.tsx

Pagination

<nav>
PropTypeDefaultDescription
aria-labelstring—Defines a string value that labels the current element. The name of the landmark for screen readers. Default "pagination". Translate it.
...props<nav> attributes—Every other attribute goes to the <nav>, with a ref.

PaginationContent

<ul>
PropTypeDefaultDescription
...props<ul> attributes—Every other attribute goes to the <ul>, with a ref.

PaginationItem

<li>
PropTypeDefaultDescription
...props<li> attributes—Every other attribute goes to the <li>, with a ref.

PaginationLink

<a>
PropTypeDefaultDescription
From Base UIUseRenderBase UI docs
...props<a> attributes—Every other attribute goes to the <a>, with a ref.

PaginationPrevious

<div>
PropTypeDefaultDescription
isActiveboolean—The current page: the outline Button look, aria-current="page", and data-active.
variant"ghost""outline"—The Button look. By default ghost, and outline when isActive. Set outline for the edge links of a compact phone row ("Phone compact" story), where a ghost square has no edge.
disabledboolean—An edge link with no page to go to (Previous on page 1). It keeps its place at 50%, has no href (so Tab skips it), and gets role="link" with aria-disabled. A render link that brings its own href (a router Link) keeps it, because the props of the render element win; so a disabled link also leaves the tab order (tabIndex={-1}) and cancels a click.
size"default""lg""sm""default"The Button text size: sm 28px, default 32px, lg 36px high.
textstring"Previous"The visible text. Translate it. It hides below sm; the aria-label stays.
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PaginationNext

<div>
PropTypeDefaultDescription
isActiveboolean—The current page: the outline Button look, aria-current="page", and data-active.
variant"ghost""outline"—The Button look. By default ghost, and outline when isActive. Set outline for the edge links of a compact phone row ("Phone compact" story), where a ghost square has no edge.
disabledboolean—An edge link with no page to go to (Previous on page 1). It keeps its place at 50%, has no href (so Tab skips it), and gets role="link" with aria-disabled. A render link that brings its own href (a router Link) keeps it, because the props of the render element win; so a disabled link also leaves the tab order (tabIndex={-1}) and cancels a click.
size"default""lg""sm""default"The Button text size: sm 28px, default 32px, lg 36px high.
textstring"Next"The visible text. Translate it. It hides below sm; the aria-label stays.
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PaginationEllipsis

<span>
PropTypeDefaultDescription
size"icon""icon-lg""icon-sm""icon"The box of the page links next to it: icon-sm 28px, icon 32px (default), icon-lg 36px.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use it when a list loads one page at a time, with a URL per page.
  • Render router links through render on each link.
  • Add className="mx-0 w-auto" to put it at the end of a table footer.
  • To show where a page sits in the site, use a Breadcrumb.
  • For views of one thing in one place, use Tabs.

It is a nav landmark. The current page has aria-current="page".

A disabled Previous or Next leaves the tab order. Each touch area is 44px high.

Built with

Installs with Pagination

Components
Button
  1. AddedPagination, with Button.
Open the release