SideNav
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).
A list of the sections on one long page. It jumps to a section and shows the one the page is at.
A list of the sections on one long page. Click a row to jump, and the caret follows the section in view. The menu variant is the same list in a popover.
The rail beside a scrolling page. The current row keeps the caret and the strong line. Variants shows the menu.
Name, owner, and the account this record belongs to.
Terms, the billing day, and the invoice the run writes to.
Metered lines, the rate they are billed at, and this period's totals.
Every change on the record, newest first.
Pass items whose ids match sections on the page. spy follows scroll. offset keeps the jump clear of a sticky header. Use the menu variant on a narrow screen. DocsNav is for the product, Tabs switch views, and ProgressSteps is a flow.
import { AnchorNav } from "agentic-ds-kit";From contracts/anchornav.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| items | array | Yes | — | Each id is the id of that section on the page. |
| variant | rail | menu | No | rail | rail is the list. menu is the same list in a popover for narrow screens. |
| spy | boolean | No | true | Follow the section in view. |
| offset | number | No | 0 | Pixels to keep clear of a sticky header when jumping. |
| ariaLabel | string | No | On this page | — |
| menuLabel | string | No | On this page | Menu trigger label before a section is current. |
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).
Docs and catalog sidebar only: title, grouped text-only links, optional decorative icons and muted counts on group and subgroup headers only, an active page pill and optional footer links.
Switch between related views in place.
Ordered wizard steps as numbered circles with a connecting line and a status word under each label: Done, Current, Upcoming, Error, or Optional.