Skip to content

Breadcrumb

A wrapper around React Aria’s Breadcrumbs and Breadcrumb components. Renders a <nav> with aria-label and marks the last item as the current page.

Terminal window
npx @a2ra/cli add breadcrumb
{
"type": "Breadcrumb",
"props": {
"ariaLabel": "Page location",
"items": [
{ "id": "home", "label": "Home", "href": "/" },
{ "id": "products", "label": "Products", "href": "/products" },
{ "id": "detail", "label": "Wireless Keyboard" }
]
}
}
PropTypeDescription
itemsBreadcrumbItem[]Ordered list of crumbs
ariaLabelstringARIA label for the <nav> element. Default: "Breadcrumb"
isDisabledtrue
false default
Disables all breadcrumb links
FieldTypeDescription
idstringUnique identifier
labelstringVisible text
hrefstringLink destination (omit for the current page)
  • The last item (no href) is automatically marked aria-current="page".
  • Items without href render as plain text, not links.
  • Breadcrumbs are wrapped in <nav> with the aria-label for landmark navigation.