Skip to content

Breadcrumb

A navigation landmark that shows where the current page sits in a hierarchy.

hero.tsx

Usage guidelines

  • Use Breadcrumb to show the path from a top-level section to the current page, such as a document inside a knowledge base. Use Tabs to switch between sibling views and Pagination to move through a long list.
  • Name the landmark with aria-label or aria-labelledby; the types require exactly one. Pass the consumer's localized text.
  • End the trail with BreadcrumbPage for static current text. When the current item stays clickable, use BreadcrumbLink with aria-current="page" instead.
  • Place a BreadcrumbSeparator between items. It renders a decorative / that assistive technology skips; pass children to swap the glyph.
  • Route links through BreadcrumbLink with render, for example a router link. The rendered component must forward props and its ref to an anchor.
  • The component does not infer routes, truncate or collapse. Constrain an item's width and truncate its text, or move ancestors into a Menu, at the call site.

Anatomy

tsx
tsx

BreadcrumbList sets the row layout and typography; set a text class on it to restyle every item together.

Examples

The last item keeps its link and marks itself with aria-current="page", so it stays focusable and clickable — useful when clicking the current section resets filters or reloads the view.

current-link.tsx

Truncated label

Constrain an ancestor item with a max width, truncate the text inside its link, and pair it with a Tooltip so hover and keyboard focus reveal the full label. The link keeps its full accessible name and focus ring; keep the current page untruncated.

truncated-label.tsx

Collapsed ancestors

Collapse the middle of a deep path into a Menu, keeping the first item and the last two in place. The trigger carries its own accessible name, and each hidden ancestor stays a link through MenuLinkItem.

collapsed-ancestors.tsx

API reference

A navigation landmark displaying the current page's location within a hierarchy. Renders a <nav> element.

Requires aria-label or aria-labelledby. Consumers own separators, truncation, and overflow handling.

Props
PropTypeDefaultDetails
aria-labelstringNo default
aria-labelledbystringNo default

Valid prop combinations:

  • aria-label: string, aria-labelledby?: undefined
  • aria-label?: undefined, aria-labelledby: string

Accepts the props of the element it renders.

An interactive breadcrumb link supporting the render prop for custom link components. Renders an <a> element.

Base UI BreadcrumbLink docs

Accepts the props of the element it renders.

Displays the non-interactive current page item with aria-current="page". Renders a <span> element.

Accepts the props of the element it renders.

Props
PropTypeDefaultDetails
childrenReact.ReactNode'/'