Components/Pagination

Search documentation

Jump to any guide or component.

↑↓ move · Enter open · Esc close

Navigation · Pagination

SSR NativeAccessible

Pagination

Moves between numbered result pages while preserving native links.

Live previewv0.1.4
Astro
---
import { Pagination } from '@charvesta/cetha';
---

<Pagination page={2} pageCount={5} baseUrl="/items" label="Items" previousLabel="Previous" nextLabel="Next" />

API reference

PropTypeDefaultDescription
page*numberCurrent one-based page.
pageCount*numberTotal page count.
baseUrl*stringBase destination for generated links.
label*stringNavigation landmark label.
previousLabel*stringPrevious-page label.
nextLabel*stringNext-page label.
classstringAdditional classes forwarded to the rendered element.

Accessibility

The current page and disabled boundary controls are communicated semantically.