Search

Find a component, token or page

Base · Navigation

Breadcrumb

A trail of links showing where the current page sits in the hierarchy.

HTML / JSPlannedReactStableReact NativeDraftSwift (SwiftUI)PlannedGodotPlannedVueDraftSvelteDraftSolidDraft
Reviewed

Props

tsx
import {
  Breadcrumb,
  BreadcrumbItem,
  BreadcrumbLink,
  BreadcrumbList,
  BreadcrumbPage,
  BreadcrumbSeparator,
} from "@/components/ui/breadcrumb"

<Breadcrumb>
  <BreadcrumbList>
    <BreadcrumbItem>
      <BreadcrumbLink href="/">Home</BreadcrumbLink>
    </BreadcrumbItem>
    <BreadcrumbSeparator />
    <BreadcrumbItem>
      <BreadcrumbLink href="/shipments">Shipments</BreadcrumbLink>
    </BreadcrumbItem>
    <BreadcrumbSeparator />
    <BreadcrumbItem>
      <BreadcrumbPage>SH-20418</BreadcrumbPage>
    </BreadcrumbItem>
  </BreadcrumbList>
</Breadcrumb>

Overview

A breadcrumb lists the pages above the current one, from the top level down. Each ancestor is a link; the current page is plain text at the end.

When to use

  • On pages three or more levels deep, such as Shipments › SH-20418 › Documents.
  • When users arrive from search or a shared link and need to see where they are.
  • On long trails, with the middle levels collapsed into an ellipsis, optionally opening a Dropdown menu.

When not to use

  • On top-level pages, where the Sidebar already shows the location.
  • To show progress through a sequence of steps: that is a stepper, not a hierarchy.
  • As the main navigation. It supplements the Sidebar or Navigation menu.
  • To show browsing history. The trail reflects structure, not the path taken.

Anatomy

  1. List

    An ordered list inside a nav landmark. Wraps onto a second line when it runs out of room.

  2. Link

    An ancestor page, in muted text that darkens on hover.

  3. Separator

    A chevron between items. Replace it by passing children.

  4. Page

    The current page, in the default text color. Not a link.

  5. Ellipsis (optional)

    Stands in for collapsed levels.

Props

The contract every language implements. Names follow each language’s conventions (camelCase in React, snake_case in Rust).

PropTypeDefaultDescription
parentstringShipmentsLabel of the parent link in this example. Passed as children of BreadcrumbLink.
pagestringSH-20418Label of the current page. Passed as children of BreadcrumbPage.
rendernode–On BreadcrumbLink, the element to render instead of <a>, such as a router link. (HTML / JS, React, Rust (Dioxus), Vue, Svelte, Solid only)

States

Rest
Links in muted text; current page in default text.
Link hover
The link text changes to the default text color.
Focus-visible
The browser focus outline on the focused link.

Accessibility

Role: navigation

KeysAction
TabMoves focus to the next link in the trail. The current page is skipped.
EnterFollows the focused link.
  • The nav element is labelled “breadcrumb”; the current page carries aria-current="page".
  • Separators and the ellipsis are hidden from assistive technology.
  • If the ellipsis opens a menu, wrap it in a button with an accessible name such as “Show more levels”.

Design tokens

Change any of these in Foundations and this component follows, in every language.

Platform notes

HTML / JS
Planned
Not built in HTML / JS yet.
React
Stable
Matches the contract with no platform differences.
React Native
Draft
Links are Pressables with onPress for your navigator and a 44pt touch target; there is no render prop. Phones usually show hierarchy with the header back button, so it suits tablet and web layouts.
Swift (SwiftUI)
Planned
Not built in Swift yet.
Godot
Planned
Not built in Godot yet.
Vue
Draft
Usage snippet only; same props and behavior as the React component.
Svelte
Draft
Usage snippet only; same props and behavior as the React component.
Solid
Draft
Usage snippet only; same props and behavior as the React component.

Related