# Pagination

Render previous/next and page-link navigation. Because sometimes your collection of cute cat photos is just too big for one page.

## Notes

- Use onPageChange when you need controlled pagination behavior.
- Keep currentPage and totalPages page-owned.
- Please don't use this if you only have 2 pages. Just show them all!

## Properties

| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| currentPage (required) | `number` | - | The currently active page. |
| totalPages (required) | `number` | - | Total number of pages. |
| class | `string` | - | Additional CSS classes. |

## Example

```astro
<Pagination currentPage={2} totalPages={8} />
```
