Integrated ResearchPicasso
Components

Breadcrumb

Where the current page sits in the hierarchy — every level but the last is a link.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

Where the current page sits in the hierarchy — every level but the last is a link.

Import

import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbEllipsis, BreadcrumbTrigger } from "@ir/ui";

Watch out

  • The separator belongs to the item, not between items — and that is load-bearing, not incidental. The file gives the list a gap of 10 (md) and each item an internal gap of 6, so the space before a chevron is wider than the space after it. A separator placed between items as a sibling can only ever produce 10/10. Each item therefore carries its own leading chevron, hidden on the first item — which is exactly what the file does with its Separator boolean, off on the first item only.
  • Size changes the gap and nothing else. md and sm are both body/md at 14px and both 21 tall; only the list gap moves, 10 → 6. Built as drawn, and raised — a size axis that does not change type is unusual enough to be worth confirming.
  • Focus is drawn but not designed. All twelve BreadcrumbItem variants have a Focus state, and every one of them is pixel-identical to its Default — no ring, no underline, nothing. Only Link Hover differs from its Default at all. A link that cannot be seen when focused is a keyboard trap, so the code carries the system's standard focus ring regardless; Figma needs the same fix that the seven Tab focus variants got.

Props

PropTypeRequiredWhat it does
separatorbooleanThe leading chevron. On by default and hidden on the first item — Figma's Separator.

Do and don't

Render it as the current page, with aria-current.

Don't — Make the last crumb a link to the page you are already on.

A link that goes nowhere wastes a tab stop and tells a screen-reader user the wrong thing about where they are.

Collapse the middle into an ellipsis past four levels.

Don't — Print all seven levels and let the row wrap.

The first and last levels are what people orient by. The middle is only needed when someone goes looking.

Show where this page sits in the structure.

Don't — Show where the person has been.

Breadcrumbs describe the hierarchy, not the journey. A trail that changes per visitor cannot be learned.

Give it text only a screen reader hears.

Don't — Leave the collapsed crumb as three dots and nothing else.

An ellipsis is a shape. Without words it is a control nobody can name or explain.

Use sm to tighten the gaps — both sizes are body/md at 14px.

Don't — Reach for sm expecting smaller text in a dense context.

Size moves the spacing only. If the type needs to shrink, that is a change to make in Figma first.

Accessibility

  • The <nav> carries aria-label="Breadcrumb". That is what distinguishes it from every other nav on the page.
  • The current page takes aria-current="page" and is not a link.
  • Separators and the ellipsis glyph are aria-hidden, so the trail reads as a list of names rather than "slash" between each one.
  • The ellipsis ships an sr-only label, "Show hidden levels" by default. Replace the text, not the mechanism.

Where it is drawn

Figma — structure from figma, measurements from figma.

Open in Storybook

On this page