Breadcrumbs
When to use it
Section titled “When to use it”- 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.
When not to use it
Section titled “When not to use it”- 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
Best practice
Section titled “Best practice”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.
What each variant is for
Section titled “What each variant is for”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.
Accessibility
Section titled “Accessibility”- The trail is a native <nav> landmark labelled “Breadcrumb”, containing an ordered list; the label can be overridden through the passthrough props.
src/components/Breadcrumbs/Breadcrumbs.tsx:36 - The current page is the last list item, a non-link <span> marked aria-current=“page”.
src/components/Breadcrumbs/Breadcrumbs.tsx:49 - The “/” separators are aria-hidden so assistive technology does not announce them.
src/components/Breadcrumbs/Breadcrumbs.tsx:43 - Each ancestor is a native <a>, so keyboard focus, the focus ring and activation are the browser’s own; no focus style is overridden.
src/components/Breadcrumbs/Breadcrumbs.tsx:40
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.
What this version promises
Section titled “What this version promises”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.
Stories
Section titled “Stories”All Variants
Section titled “All Variants”The single-variant stories (Item2TrueItem3True, Item2FalseItem3True, Item2TrueItem3False, Item2FalseItem3False) are cells of the variant matrix; the Design tab links each one.
Import
Section titled “Import”import { Breadcrumbs } from "@layerbasesystemic/horizon-design-system";import type { BreadcrumbsProps } from "@layerbasesystemic/horizon-design-system";@layerbasesystemic/horizon-design-system/tokens.css and @layerbasesystemic/horizon-design-system/styles.css must be loaded too; see Developing.
| Prop | Type | Default | Description |
|---|---|---|---|
item1 |
string |
"Stays" |
— |
item2 |
string |
"Portugal" |
— |
item3 |
string |
"Lisbon" |
— |
current |
string |
"Alfama" |
— |
showItem2 |
boolean |
true |
— |
showItem3 |
boolean |
true |
— |
item1Href |
string |
— | — |
item2Href |
string |
— | — |
item3Href |
string |
— | — |
BreadcrumbsProps also extends HTMLAttributes<HTMLElement>, so native attributes pass through to the element (Breadcrumbs.tsx:4).
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. The Usage tab quotes the QA report and the release review on this.
Tokens it needs
Section titled “Tokens it needs”Every CSS custom property Breadcrumbs.css reads, with its value in the token build at b9ffb76.
| Token | Light | Dark |
|---|---|---|
--color-text-primary |
#161925 |
#f9fafb |
--color-text-secondary |
#4d5361 |
#9ca2b1 |
--fontfamily-body |
Inter |
same as light |
--fontsize-md |
12px |
same as light |
--lineheight-md |
18px |
same as light |
--spacing-sm |
8px |
same as light |
This matches required_tokens in Breadcrumbs.intent.json exactly.
Figma node
Section titled “Figma node”Page Breadcrumbs (57:1639), documentation frame ❖ breadcrumbs (163:13), component breadcrumbs (163:2). The file is shared with the team only, so the frame and the link ask anyone outside it to sign in.
Variant matrix
Section titled “Variant matrix”ShowItem2 (2) × ShowItem3 (2) = 4 cells. Breadcrumbs (163:2) is a single component with two boolean properties, ShowItem2 and ShowItem3, not a variant set. The documentation frame (163:13) draws the four combinations as 164:1504 (ShowItem2 true, ShowItem3 true), 164:1516 (ShowItem2 false, ShowItem3 true), 164:1529 (ShowItem2 true, ShowItem3 false) and 164:1542 (both false), and repeats two of them as the 3 levels row (163:16) and the 2 levels row (163:29). Item 1, Item 2, Item 3 and Current are text properties, not matrix axes. Figma draws no hover, focus or visited variants.
ShowItem2 |
ShowItem3=true |
ShowItem3=false |
|---|---|---|
true |
Item2TrueItem3True164:1504 |
Item2TrueItem3False164:1529 |
false |
Item2FalseItem3True164:1516 |
Item2FalseItem3False164:1542 |
Each cell is the Storybook story for that combination and its Figma variant node. showItem2 and showItem3 are boolean props, not union types: Breadcrumbs.tsx exports no union type, so this matrix has no variant union to match. Figma spells the properties ShowItem2 and ShowItem3; the code spells them showItem2 and showItem3. The story that isn’t a single cell (AllVariants) is embedded on the Examples tab.
Hover is not a Figma cell. The component description (node 163:2) says “Ancestors are links in color/text/secondary that underline on hover; the current page is color/text/primary and not a link.” Figma draws no hover cell, so the matrix above has none. The built component has the rule at Breadcrumbs.css:34-38: .hz-breadcrumbs__link:hover { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; } The stories’ header comment says: “Figma draws no hover, focus or visited variants; the ancestor-link underline on hover comes from the component description (node 163:2).” (Breadcrumbs.stories.tsx:5). The QA report records the hover case as a pass on the live preview.
Themes
Section titled “Themes”The Breadcrumbs frame renders every cell once, in one theme. It has no separate light and dark frames.
The token build defines 179 tokens for light and redeclares 50 for dark; the Code tab shows Breadcrumbs’s tokens in both.
Values Figma never bound
Section titled “Values Figma never bound”The Figma read of Breadcrumbs found no values on the node that aren’t bound to a variable.
Figma variables against the token build
Section titled “Figma variables against the token build”| Figma variable | Figma value | Token in the build | Built light value | Agrees |
|---|---|---|---|---|
--spacing-sm |
8 |
--spacing-sm |
8px |
yes |
--fontFamily-body |
Inter |
--fontfamily-body |
Inter |
yes |
--fontSize-md |
12 |
--fontsize-md |
12px |
yes |
--lineHeight-md |
18 |
--lineheight-md |
18px |
yes |
--fontWeight-regular |
Regular |
no such token | — | no token |
--color-text-secondary |
#4d5361 |
--color-text-secondary |
#4d5361 |
yes |
--color-text-primary |
#161925 |
--color-text-primary |
#161925 |
yes |
--fontWeight-regular is bound in Figma but the token build has no token of that name.
Design gaps recorded against it
Section titled “Design gaps recorded against it”- From the release review: Check 2: dont_use_when[0], “On top-level pages that have no parent: there’s nothing to show.”, has an empty instead. Figma names no alternative for it. Owner: the designer, if one should be named.
Every commit to src/components/Breadcrumbs up to b9ffb76, newest first, with the published version that carries it.
| Commit | Date | Version | Change |
|---|---|---|---|
b97fdd0 |
2026-10-02 | 0.2.0 | Breadcrumbs: intent usage from Figma Usage frame 163:42 |
39b7b9a |
2026-10-02 | 0.2.0 | Breadcrumbs: underline ancestor links on hover (Figma description 163:2) |
68cc8b3 |
2026-10-02 | 0.2.0 | Breadcrumbs: build from Figma 57:1639 |