Skip to content

Pagination

Previous / next links at the bottom of a doc page — driven by the sidebar tree.

Installation

npx nimbus-docs add pagination

Preview

<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
prevNext
{ prev?: { label: string; href: string }; next?: { label: string; href: string } }
Components

Type to search…

↑↓ navigate ↵ select Esc close