Breadcrumb renders an ordered navigation trail. It owns separators, current-page semantics, link focus styles, and truncation of the current item’s label.
Usage
Pass items in ancestor-to-current order. The navigation landmark defaults to the accessible nameBreadcrumb; use aria-label to localize it or distinguish multiple trails. The final item receives aria-current="page", whether it has a destination or displays plain text.
href use native links. Items without a destination are text. Separators are decorative and hidden from assistive technology. Links follow the browser’s normal Tab and Enter behavior.
Router links
Use an item’srender prop to supply your router’s link component, alongside href. The rendered link must forward the supplied props and ref to its anchor. See custom components for composition requirements.
The application chooses destinations and decides when to show a mobile back action. Breadcrumb does not infer routes or collapse ancestors into a menu.
Long labels
The current item shrinks and truncates with an ellipsis when the container has limited space. Ancestor items retain their width. Plain string labels become the native browser tooltip automatically. Usetitle to override that text or provide a tooltip for rich content.
Rich content
An item’schildren can include text and supporting visual content. Keep the label readable and avoid nesting interactive controls inside a link.
Text direction
The trail follows the surrounding text direction. Setdir="rtl" on Breadcrumb or an ancestor for right-to-left content. When other controls need matching directional keyboard or pointer behavior, also set TextDirectionProvider to the same direction.
Props
Native navigation attributes, including accessible names,className, style, and event handlers, reach the root landmark.
BreadcrumbItem[]
required
Ordered trail items. Each item accepts
children, href, render, and title. The final item represents the current page.ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>
Caller-supplied root element or renderer. Preserve the navigation landmark and forward the supplied props and ref.