Breadcrumb
Show a resource hierarchy and mark its current page.
Anatomy#
Usage#
Use Breadcrumb to show where a resource sits in a navigation hierarchy. Keep ancestor destinations as links and render the current page as a non-link item. For in-page section switching, use Tabs instead.
Items and current page#
Use href for navigable ancestors, with target, rel, and onClick as needed. Disabled
ancestors render without href or onClick and expose aria-disabled="true".
The last item is the current page by default; set active on another item to mark it instead (the
first active item wins). The current page renders as a span with aria-current="page", and
disabled has no effect on it.
separator: accepts an icon name, an element, or a component (defaulticon-chevron-right) and is hidden from assistive technology.wrap: defaults totrueso a long trail can break onto extra lines in a narrow column; setwrap={false}to keep the trail on one line and clip any overflow.aria-label/translations: the<nav>is labeledbreadcrumbby default; setaria-labelortranslations={{ label }}to change it.
Pass itemRender to replace each item’s link or page element, for example with a router link. The
component receives { item, index, active, disabled } and is responsible for aria-current and
disabled handling.
Examples#
Basic#
Link ancestors and leave the last item as the current page.
Disabled item and custom separator#
Mark non-navigable items with disabled and pass separator to replace the default divider.
Wrapping#
Leave wrap on so the trail can break across lines. Set wrap={false} to keep every item on one line.
Custom item#
Use itemRender to render each item yourself for router links or custom chip styling. It receives
item, index, active, and disabled.
API Reference#
Attributes#
data-disableddata-currentProps#
Props for the Breadcrumb component. Renders a <nav> element by default.