Breadcrumbs

Where a page sits: each level up as a link, separated by chevrons, then the current page as plain text. Past maxVisible, the middle levels fold into a … menu, keeping the first level and those nearest the page. Long labels clip with their full text on hover.

BetaReady to use. Its API can still change in a minor release; the changelog says when.

import { Breadcrumbs } from "@leap-crm/design-system";

Playground

Change a prop and the component follows. Its code is under Props.

Props

maxVisible

Best practices

When to use it, and the rules that apply in particular places.

GuidancePractice
DoUse it on a page that sits below other pages, like a contact's documents under the contact under Contacts. The last item is the current page and never links.
DoPass your router's Link as each crumb's render, so going up a level stays inside the app.
DoKeep long labels whole, like a trust's full name. Each crumb clips through Truncate and shows the full label on hover.
DoLower maxVisible where the header is narrow. The middle levels fold into a … menu and the first level and those nearest the page stay.
Don'tUse it to move between views of one record, like a contact's details and documents. Use Tabs or UnderlineTabs: breadcrumbs show levels, not siblings.

Props

PropTypeDefaultDescription
items *Breadcrumb[]—From the top level down to the current page, which comes last.
maxVisiblenumber4How many crumbs show before the middle ones fold into a menu.
aria-labelstring"Breadcrumb"Names the navigation.
classNamestring—Classes added to the root element, merged with its own. Tokens only.

Code

What the playground shows, ready to copy.

import { Breadcrumbs } from "@leap-crm/design-system";

<Breadcrumbs items={items} />

Levels

Contacts, then the contact, then the page you're on.

Folded

Six levels with maxVisible={4}: the first level, the … menu holding the middle three, the level above the page, and the page.

Keyboard

The keys it answers to. Tab moves between components, arrows move within them.

KeysWhat they do
EnterFollows the focused crumb.
EnterSpaceArrowDownOn the ⋯ button, opens the menu of hidden crumbs with focus on the first.
EscapeCloses that menu and returns focus to the ⋯ button.