Breadcrumb
A navigation landmark that shows where the current page sits in a hierarchy.
Usage guidelines
- Use
Breadcrumbto show the path from a top-level section to the current page, such as a document inside a knowledge base. UseTabsto switch between sibling views andPaginationto move through a long list. - Name the landmark with
aria-labeloraria-labelledby; the types require exactly one. Pass the consumer's localized text. - End the trail with
BreadcrumbPagefor static current text. When the current item stays clickable, useBreadcrumbLinkwitharia-current="page"instead. - Place a
BreadcrumbSeparatorbetween items. It renders a decorative/that assistive technology skips; pass children to swap the glyph. - Route links through
BreadcrumbLinkwithrender, 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
BreadcrumbList sets the row layout and typography; set a text class on it to restyle every item together.
Examples
Current page as a link
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.
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.
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.
API reference
Breadcrumb
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.
| Prop | Type | Default | Details |
|---|---|---|---|
aria-label | string | No default | |
aria-labelledby | string | No default | |
Valid prop combinations:
aria-label: string,aria-labelledby?: undefinedaria-label?: undefined,aria-labelledby: string
BreadcrumbItem
Accepts the props of the element it renders.
BreadcrumbLink
An interactive breadcrumb link supporting the render prop for custom link components. Renders an <a> element.
| Prop | Type | Default | Details |
|---|---|---|---|
render | ComponentRenderFn<HTMLProps, {}> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
BreadcrumbList
Accepts the props of the element it renders.
BreadcrumbPage
Displays the non-interactive current page item with aria-current="page". Renders a <span> element.
Accepts the props of the element it renders.
BreadcrumbSeparator
| Prop | Type | Default | Details |
|---|---|---|---|
children | React.ReactNode | '/' | |