Breadcrumb
A semantic navigation trail for hierarchical locations.
A semantic navigation trail for hierarchical locations.
Import
Section titled “Import”import { Breadcrumb } from "@zentara-co/zenos-ui";Collapsed path
Section titled “Collapsed path”Use Breadcrumb.Ellipsis to summarize intermediate levels while keeping the root and current page visible.
Custom separators
Section titled “Custom separators”Pass text or an icon to Breadcrumb.Separator. Separators remain decorative and are hidden from assistive technology.
Long content
Section titled “Long content”Breadcrumbs wrap by default so the full hierarchy remains available in narrow containers and at high zoom.
Custom styling
Section titled “Custom styling”Every compound part accepts className, so the list surface, ancestor links, separators, and current page can use a custom treatment. Keep Breadcrumb.Page for the current location so visual styling does not replace its built-in aria-current="page" semantics.
Breadcrumb.Root Breadcrumb.List Breadcrumb.Item Breadcrumb.Link Breadcrumb.Page Breadcrumb.Separator Breadcrumb.Ellipsis
API
| Prop | Type | Default | Description |
|---|---|---|---|
as | ElementType | a | Polymorphic element for Breadcrumb.Link. |
label | string | More | Accessible label for Ellipsis. |
native props | React.HTMLAttributes<HTMLElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Accessibility
Section titled “Accessibility”Breadcrumb renders a labeled nav containing an ordered list. Use links for ancestor levels and Breadcrumb.Page only for the current location so it receives aria-current="page". Separators are decorative and excluded from the accessibility tree.