molecules
Pager
Previous, all, and next navigation between sibling pages. A missing neighbour becomes a greyed placeholder that keeps the layout.
Specimens
{{ Pager.render({
label: "Case studies",
previous: {
href: "/work/",
title: "Previous project",
meta: "Client name"
},
next: { href: "/about/", title: "Next project", meta: "Client name" },
all: { href: "/work/", label: "All" }
}) }}{{ Pager.render({
label: "Chapters",
next: { href: "/about/", title: "Chapter two" },
all: { href: "/work/", label: "Contents" }
}) }}Params
| Param | Type | Required | Description |
|---|---|---|---|
label | string | Yes | The <nav>'s aria-label. Must differ from other navs on the page. |
previous | { href, title, meta } | No | Omitted → a greyed (opacity-40), aria-hidden placeholder that keeps the three-column layout. |
next | { href, title, meta } | No | Same. |
all | { href, label } | No | Middle link with the grid icon. label defaults to “All”. |
classes | string | variant map | array | No | Appended to the <nav>. |
styles | { link } | No | Appended to each of the three links. |
Notes
Give each pager on a page a distinct label, since it names the navigation landmark.