Breadcrumbs
The path from the top of the app to this screen, for wide layouts: links up, then the current page.
Stability: experimental
Props
| Prop | Type | Default | Means |
|---|---|---|---|
items | { label: string; href?: string }[] | From the top down. Every item with an href but the last is a link; the last is the current page. | |
label | string | Breadcrumb | The navigation landmark's name. |
States
| State | Looks like |
|---|---|
hovered | A link is underlined. |
focused | A 2px primary outline. |
current | The last item in ink; links in primary, with chevrons between. |
Accessibility
| role | navigation, named Breadcrumb |
| name | The label prop. |
| focus | Each link is in the Tab order; the current page is not a link. |
| keyboard | Enter follows a link. |
| notes | A crumb for a screen the user would reach by going back goes back to it rather than pushing a copy (decision 0040), so a tab's first screen gains no back button. The last item has aria-current="page". The chevrons are hidden from assistive technology. To show it only in a wide window, wrap it: <view class="hidden lg:flex">. |
Theme tokens
color.primary color.ink color.muted radius.xs text.caption
Example
<Breadcrumbs items={[{ label: "Library", href: "/library" }, { label: "Travel" }]} />