Pagination
Previous / next navigation cards.
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: '概述', href: '/zh/contribution/overview/' }, undefined, { previous: '上一页', next: '下一页' },);| Option | Type | Description |
|---|---|---|
previous | PaginationItem | undefined | Previous card; omit to hide. |
next | PaginationItem | undefined | Next card; omit to hide. |
labels.previous / labels.next | string | 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.