# Pagination

> Page navigation with previous, next and numbered pages.

- Category: [Navigation](https://tarve.dev/docs.md#navigation)
- Import: `import { Pagination } from "@tarve/core";`
- Props type: `PaginationProps`
- Source: [packages/core/src/extra-controls.ts:180](https://github.com/omarcosr/tarve/blob/main/packages/core/src/extra-controls.ts#L180)

## Usage

```tsx title="Pagination.tsx"
import { Pagination } from "@tarve/core";

let page = 3;

<Pagination
  page={page}
  pageCount={12}
  onPageChange={(next) => {
    page = next;
  }}
/>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `page` (required) | `number` | — |  |
| `pageCount` (required) | `number` | — |  |
| `disabled` | `boolean` | — |  |
| `onPageChange` | `(page: number) => void` | — |  |
| `siblingCount` | `number` | `1` |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [Breadcrumb](https://tarve.dev/docs/components/Breadcrumb.md) · Next: [NavigationMenu](https://tarve.dev/docs/components/NavigationMenu.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Pagination · Index for agents: https://tarve.dev/llms.txt
