Duolith docs

Breadcrumbs

The path from the top of the app to this screen, for wide layouts: links up, then the current page.

Stability: experimental

Props

PropTypeDefaultMeans
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.
labelstringBreadcrumbThe navigation landmark's name.

States

StateLooks like
hoveredA link is underlined.
focusedA 2px primary outline.
currentThe last item in ink; links in primary, with chevrons between.

Accessibility

rolenavigation, named Breadcrumb
nameThe label prop.
focusEach link is in the Tab order; the current page is not a link.
keyboardEnter follows a link.
notesA 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" }]} />