Zephora UI

Navigation

Breadcrumb

Hierarchy trail rendered as a nav > ol landmark. Accepts an items array or BreadcrumbItem children, a custom separator and ellipsis collapsing.

Import

import { Breadcrumb, BreadcrumbItem } from "@zephora/react";

Examples

Basic

The last item is automatically marked as the current page.

Custom separator and children

Compose BreadcrumbItem children and swap the separator node.

Collapsed

`maxItems` hides middle items behind an ellipsis button; clicking it expands the trail.

API

Breadcrumb props

PropTypeDefaultDescription
itemsArray<{ label: ReactNode; href?: string; icon?: ReactNode }>Item data; alternatively pass BreadcrumbItem children.
separatorReactNode"/"Node rendered between items.
maxItemsnumberCollapses middle items behind an ellipsis button when exceeded.
aria-labelstring"Breadcrumb"Accessible name of the nav landmark.
unstyledbooleanfalseHeadless mode — skips Zephora styling.

BreadcrumbItem props

PropTypeDefaultDescription
hrefstringRenders the label as a link.
iconReactNodeElement rendered before the label.
currentbooleanMarks the current page (aria-current). Defaults to true for the last item.
unstyledbooleanOverrides the inherited headless mode.