Breadcrumb

Hierarchical navigation trail with current-page state.

Add it to your project

Eject the complete breadcrumb group, then import from its generated local barrel. The copied source and CSS belong to your application.

bash
pnpm exec toucan eject breadcrumb
app.tsx
import { Breadcrumb, BreadcrumbItem } from '@/components/toucan/breadcrumb';

Use when

Users need context and shortcuts within a multi-level information hierarchy.

Avoid when

The product has a flat structure or the trail would only contain one item.

Example

API reference

Generated from packages/react/src/components. Only Toucan-specific props are listed; forwarded native props remain available as noted for each export.

BreadcrumbBreadcrumbItem

Breadcrumb

Props type: BreadcrumbProps

NameTypeDefaultRequiredDescription
labelstring'Breadcrumb'NoAccessible label for the navigation landmark. Defaults to "Breadcrumb".
separatorReact.ReactNode'/'NoCustom separator rendered between items. Defaults to "/".

Also accepts the native HTML element attributes that are not replaced by a Toucan prop.

BreadcrumbItem

Props type: BreadcrumbItemProps

NameTypeDefaultRequiredDescription
hrefstringundefinedNoWhen provided, wraps children in an anchor element.
isCurrentbooleanfalseNoMarks this item as the current page. Sets aria-current="page".

Also accepts the native list item attributes that are not replaced by a Toucan prop.

Type exports

BreadcrumbItemProps, BreadcrumbProps

Accessibility

  • Uses a labelled navigation landmark and marks the current page.

Token families

breadcrumb

Related components