Navigation
Breadcrumbs
Location in a hierarchy, as links separated by "/". Middle items collapse into a "…" menu when the row runs out of space.
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/BreadcrumbsExample.tsx
Examples
Collapsing in a narrow row
At 320px only the first item, "…" and the current page remain.
Emoji icons and an access chip
API Reference
Breadcrumbs
| Prop | Type | Default |
|---|---|---|
items | { label: ReactNode; href?: string; icon?: IconName | string; onClick?: () => void }[] | |
maxItems | number | 4 |
trailing | ReactNode | |
collapsedLabel | string | "Show hidden breadcrumbs" |
aria-label | string | "Breadcrumb" |
BreadcrumbAccess
Access chip button ("Private ⌄").
| Prop | Type | Default |
|---|---|---|
label | ReactNode | "Private" |
icon | IconName | "lockFill" |
Accessibility
- Follows the WAI-ARIA breadcrumb pattern:
navlabelled "Breadcrumb" around an ordered list; the last item hasaria-current="page". - Items with
hrefare links, items with onlyonClickare buttons, others are plain text. - The "…" button ("Show hidden breadcrumbs") opens a menu of the collapsed items: Enter/Space/↓ open it, arrows move, Escape closes and returns focus.
- Separators are hidden from assistive tech. Segments are 32px tall on touch screens.
Usage
- Use in a top bar or page header to show where a page sits and to move up the hierarchy.
- Don't use as the main navigation or for steps in a flow.
- Keep labels short; long ones truncate at 240px.
© 2026 Motion. Internal documentation.