On this page
Pagination
Previous / next navigation cards.
Last updated:
Pagination renders Plumest-style previous/next cards. Either side can be omitted; labels localize the “Previous Page” / “Next Page” hints.
Both sides
Section titled “Both sides”Previous + next
pagination( { title: 'Styles', description: 'Tokens and layout metrics.', href: '/contribution/styles/' }, { title: 'Cards', description: 'The link-card grid.', href: '/contribution/components/cards/' },);One side only
Section titled “One side only”Next only
Previous only, localized labels
pagination( undefined, { title: 'Tabs', href: '/contribution/components/tabs/' },);pagination( { title: 'Overview', href: '/zh/contribution/overview/' }, undefined, { previous: 'Previous page', next: 'Next page' },);previousPaginationItem | undefined
Previous card; omit to hide.
nextPaginationItem | undefined
Next card; omit to hide.
labels.previous / labels.nextstring
Localized hint labels.
PaginationItem: { title: string; description?: string; href: string }.
- On the real docs pages the Starlight
Paginationslot is overridden with this builder; labels are localized automatically from the current locale.