Put one PaginationItem per link, and mark the current page with isActive.
orders-pagination.tsx
Pagination
<nav>| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | string | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <ul> attributes | — | Every other attribute goes to the <ul>, with a ref. |
PaginationItem
<li>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <li> attributes | — | Every other attribute goes to the <li>, with a ref. |
PaginationLink
<a>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs" | "icon" | |
| is | boolean | false | 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. |
| disabled | boolean | false | 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. |
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 | <a> attributes | — | Every other attribute goes to the <a>, with a ref. |
PaginationPrevious
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| is | boolean | — | 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. |
| disabled | boolean | — | 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. |
| text | string | "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>| Prop | Type | Default | Description |
|---|---|---|---|
| is | boolean | — | 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. |
| disabled | boolean | — | 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. |
| text | string | "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>| Prop | Type | Default | Description |
|---|---|---|---|
| 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. |
Built with
Installs with Pagination
- Components
- Button





