Pagination
Previous / next links at the bottom of a doc page — driven by the sidebar tree.
Installation
npx @cloudflare/nimbus-docs add paginationyarn dlx @cloudflare/nimbus-docs add paginationpnpm dlx @cloudflare/nimbus-docs add paginationbunx @cloudflare/nimbus-docs add paginationPreview
<Pagination
prevNext={{
prev: { label: "Getting started", href: "/getting-started" },
next: { label: "Configuration", href: "/configuration" },
}}
/>Examples
First page
Omit prev to indicate the start of a section.
<Pagination
prevNext={{
next: { label: "Installation", href: "/installation" },
}}
/>API reference
Every prop the component accepts, sourced from a single declaration.
| Prop | Type |
|---|---|
prevNextrequired | { prev?: { label: string; href: string }; next?: { label: string; href: string } } |