Skip to content

Breadcrumbs

ReleasedShipped in 0.2.0StorybookFigma node 163:13Source
  • Above the page title on pages that sit inside a hierarchy, such as a listing (“Stays / Portugal / Lisbon / Alfama”) or a back office settings page (“Team and roles / Roles / Permissions”).
  • To let the user go back up to any parent page in one click.
  • Show 2 to 4 levels; hide unused levels with ShowItem2 and ShowItem3.

Property names. Item 3 (Figma node 163:158) is copied from Figma as written, with Figma’s spelling of the properties. The code spells them showItem2 and showItem3.

  • On top-level pages that have no parent: there’s nothing to show.
    The Figma page names no alternative.
  • To show the steps of a flow, such as checkout: use the Stepper component instead.
    Instead: Stepper
  • As the main navigation between sections: use the Sidebar or Header component instead.
    Instead: Sidebar or Header

From the Figma documentation page (usage node 163:42), as written. These items aren’t carried into Breadcrumbs.intent.json, which has no field for them.

  • Make every item except the current page a link to that page.
  • Use the same page names as the page titles and navigation, so the trail is easy to recognise.
  • Keep the current page as the last item, styled darker and not as a link.
  • Don’t wrap breadcrumbs onto two lines; shorten long names instead.
  • Mark the trail up as navigation for assistive technology (a nav landmark with aria-label=“Breadcrumb”, and aria-current=“page” on the last item).

Where the built component differs. Item 1 (Figma node 163:186) is copied from Figma as written. Whether it holds depends on the consumer passing the ancestor hrefs, which the component makes optional. item1Href, item2Href, item3Href are not Figma properties. Breadcrumbs.tsx declares them as optional props and sets href={a.href} on each ancestor <a> (Breadcrumbs.tsx:40), so an ancestor that is given no href renders an anchor without one.

From the QA report, as written:

item1Href, item2Href and item3Href are not Figma properties. They are optional props added by the engineer so that the ancestor links have destinations; with no href an ancestor renders an <a> that is not a real link.

From the release review, under “Other findings”, as written:

item1Href, item2Href and item3Href are not Figma properties. Figma’s design context for 163:2 lists only className, current, item1, item2, item3, showItem2, showItem3. The three optional href props were added by the engineer so that ancestors have destinations (the QA report says so). They are optional, so with none set, an ancestor renders <a className=“hz-breadcrumbs__link”> with no href, which is not a link: it is not focusable and is not announced as a link. Figma Best Practice 163:186 (“Make every item except the current page a link to that page”) therefore depends on the consumer passing the hrefs: the component does not enforce it. The fourth a11y fact (“Each ancestor is a native <a>, so keyboard focus, the focus ring and activation are the browser’s own”) holds only when an href is passed. The stories pass “#” for all three, so every story shows links. Owner: engineer or designer, to decide whether the hrefs should be required, or documented, or whether Figma should gain a link property.

Breadcrumbs has no variant union type, so there are no variant values to explain: Breadcrumbs.tsx exports none, and showItem2 and showItem3 are boolean props (variant_intent is empty in src/components/Breadcrumbs/Breadcrumbs.intent.json). The Design tab shows the 4 combinations that Figma draws.

The release review says the last fact above, about the native <a>, holds only when an href is passed. See the note under Best practice.

From Versioning (VERSIONING.md at b9ffb76):

0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.

Two things about this release are worth knowing:

  • Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
  • Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.