Skip to content
GitHub (opens in a new tab)

Breadcrumb

Path to the current page as a hierarchy of links.

stableMoleculecontracts/breadcrumb.json

Preview

Breadcrumb

Path of links. Not PageHeader. Not DocsNav.

Three crumbs with chevrons. Current page is never a link. Variants shows slash and collapsed trails.

Usage

Breadcrumb for the path to this page. PageHeader composes Breadcrumb when the page also needs a title. DocsNav for the sidebar. Last crumb is the current page and is not a link. The nav is named Breadcrumb; set ariaLabel to translate it or when a page has two.

Do's

  • show where this page sits in the app
  • sit above PageHeader or in a list-detail chrome

Don'ts

<Breadcrumb
  items={[{ label: "Home", href: "#" }, { label: "Components", href: "#" }, { label: "Breadcrumb" }]}
  ariaLabel="Breadcrumb example"
/>
  • show where this page sits in the app
  • sit above PageHeader or in a list-detail chrome
  • page title block — use PageHeader
  • sidebar nav — use SideNav (product) or DocsNav (docs/catalog)
  • in-page sections — use Tabs or Section
import { Breadcrumb } from "agentic-ds-kit";
must
  • nav with aria-label from ariaLabel (default "Breadcrumb")
  • ordered list
  • current page has aria-current="page" and is not a link
  • separators aria-hidden
  • collapsed ellipsis is aria-hidden and not interactive
  • icon is aria-hidden; an iconOnly crumb keeps its label as visually hidden text and title, so the link is named
defaults
  • separator chevron
  • ariaLabel Breadcrumb
stops if
  • Do not invent local Breadcrumb, BreadcrumbItem, or BreadcrumbLink
  • Do not use raw hex
  • Do not turn the current page into a link
  • Do not put an unlabelled icon crumb (a bare house link) — use icon + iconOnly with label
  • Do not put a dropdown on the ellipsis (no DropdownMenu in the kit)

From contracts/breadcrumb.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

NameTypeRequiredDefaultNotes
itemsarrayYes—Last item is the current page (no href used even if passed). Need at least 2 items.
separatorchevron | slashNochevronchevron = Lucide ChevronRight. slash = text /.
maxItemsnumberNo—When items.length > maxItems, show the first item, an ellipsis, then the last (maxItems - 1) items. Ellipsis is aria-hidden, not interactive.
ariaLabelstringNoBreadcrumbThe nav landmark's name. Set it to translate.
  • Component
    →

    PageHeader

    Top-of-page title with optional Breadcrumb trail, subtitle, actions, page Tabs, a profile Avatar and a decorative cover.

  • Component
    →

    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).

  • Component
    →

    DocsNav

    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.

  • Component
    →

    Tabs

    Switch between related views in place.