Breadcrumb

To build in the app

Canon ancestry navigation from the catalog's rt-breadcrumb. Shows the path to the current page and ends on the page itself (2026-10-13, the client's call from the Overview; it was ancestors only, "never the current page"): the ancestors are links, the last segment is stone-600 text, like the links, with aria-current=page and no href, so it says where you are without pretending to be somewhere to go. A record page ends on the record's identity — a credit memo's number, a payment's transaction identifier (Invoicing › Transactions › R-PM1002, not its amount), a payout's deposit date (its ID until it is deposited); a sub-page on a short name (New, Edit) under the record or section it belongs to; a settings section on the section (Invoicing › Settings › Payment Types). That repeats the title a line below, which is what the old rule avoided; the trail sits on the frame, outside the page card, so the repeat costs little. It is ui-sm in stone-600, as the catalog's rt-breadcrumb sets it (DES2-11, 2026-10-23). It was ui-xs from 2026-09-25, with the links in stone-light and the current page in stone-400: on the frame's stone-100 those are 4.4:1 and 2.3:1, under the 4.5:1 small text needs, and at 12px the trail got lost in the band. Separators are the shell nav's caret, angle-right (regular, sm) in stone-300, so the two carets match; a chevron-right at the same size read as a row of arrows beside it. A duotone house at xs (rust secondary on hover) leads, and the links reuse TextLink's dashed-underline reveal in navy. Rendered by the shell, not by the page header (2026-10-01): the page declares the trail (PageHeader's breadcrumb prop hands it up through page-chrome) and AppShell draws it in the App band above the page card, with show_home false — the sidebar handle took the home icon's slot on 2026-10-05, and Home is the nav tree's first row anyway. Wherever the trail stands alone the home icon still leads. With three or more segments the trail collapses under sm to home › … › parent › current, where the … opens a Popover listing the hidden ancestors; keeping the parent in view means the way back is still one tap on a phone, and the current page truncates if the band runs out (a trail that ends on a link keeps only that link). Both trails are in the DOM and a breakpoint picks one, as the catalog did. Respellings from the catalog: text-sm → text-ui-sm; flex-shrink-0 → shrink-0; leading-[0] → leading-none; the inline heroicon chevron → Icon angle-right (regular, sm); fa-house stays house, Font Awesome 7's own name (the kit, 2026-10-05). App decision on record (canon): no new component — the layout yields the trail and each view declares it with content_for :breadcrumb, which is exactly the shape page-chrome mocks here. Production's shared/ui/settings/_header.html.erb trail (tw-text-gray-400 / tw-text-teal-700) is legacy; PageHeader replaces it. Translation watch-outs: the dashed underline needs the app's .tw-link-dashed rule (2.2 has no decoration-*), shrink-0 is tw-flex-shrink-0, and the collapse is the sm breakpoint.

App: Layout yield + content_for :breadcrumb; no new component (decision on record)

Short trails

#short

Under three segments the full trail shows at every width. Home icon, angle-right carets, dashed navy underline on hover; the last segment is the current page, quiet and not a link.

Four segments

#long

Three or more segments collapse under sm: view at 390 to see home › … › QuickBooks Online › Preferences, with the … opening a Popover that lists Account and Integrations. The current page keeps its parent in view, so the way back stays one tap. At 768 and up this is the full trail.

In context: the App band

#in-context

Where the shell draws it (2026-10-01): in the 48px App band on the stone-100 backdrop, above the page card, with show_home={false} because the sidebar handle holds that slot (2026-10-05; see the App band entry for the whole strip). A record page's trail ends on its identity: a payment's transaction identifier, as its title has it, not its amount. The title names it again at full size inside the card.

R-PM1002

The path in the band, ending where you are; identity in the title.

Compact form, at every width

#forced-compact

For review without resizing: this renders BreadcrumbCompactTrail directly, the same markup the Breadcrumb shows under sm. The real collapse is breakpoint-driven, so a narrow container alone would not trigger it. Click the … to open the hidden ancestors.

Props

NameTypeDefaultNotes
items{ label: string; href?: string }[]—Required. The path to the current page, root first, ending on the page itself (the one item without an href). Three or more collapse under sm
items[].labelstring—The link text; kept on one line (whitespace-nowrap)
items[].hrefstring—Rendered with next/link. Left off the last item, the current page, which renders as stone-600 text, like the links, with aria-current=page
home_hrefstring"/"Where the leading home icon links to (aria-label Home)
show_homebooleantrueFalse drops the home link and its separator, so the first ancestor opens the trail. The App band passes false: the sidebar handle holds that slot (2026-10-05)
classNamestring—On the <nav>. Maps to the app's classes: argument
BreadcrumbFullTrail / BreadcrumbCompactTrail{ items, home_href, show_home?, className? }—Companion exports of the two trails the Breadcrumb switches between, for previews and page chrome that needs one form at every width