# Pagination

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

**Install:** `nimbus-docs add pagination`  
**Source:** `src/components/ui/pagination/`  
**Canonical:** https://nimbus-docs.com/components/pagination/

## Agent payload (JSON)

```json
{
  "slug": "pagination",
  "name": "Pagination",
  "description": "Prev / next page navigation.",
  "tagline": "Previous / next links at the bottom of a doc page — driven by the sidebar tree.",
  "install": "nimbus-docs add pagination",
  "sourcePath": "src/components/ui/pagination/",
  "canonicalUrl": "https://nimbus-docs.com/components/pagination/",
  "props": [
    {
      "name": "prevNext",
      "type": "{ prev?: { label: string; href: string }; next?: { label: string; href: string } }",
      "required": false,
      "description": "Sibling page references. Either side can be omitted (first / last page)."
    }
  ],
  "registryDependencies": [
    "cn"
  ],
  "dependencies": []
}
```
