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.
Add via CLI
Section titled “Add via CLI”npx @a2ra/cli add breadcrumbExample JSON
Section titled “Example JSON”{ "type": "Breadcrumb", "props": { "ariaLabel": "Page location", "items": [ { "id": "home", "label": "Home", "href": "/" }, { "id": "products", "label": "Products", "href": "/products" }, { "id": "detail", "label": "Wireless Keyboard" } ] }}| Prop | Type | Description |
|---|---|---|
items | BreadcrumbItem[] | Ordered list of crumbs |
ariaLabel | string | ARIA label for the <nav> element. Default: "Breadcrumb" |
isDisabled | truefalse default | Disables all breadcrumb links |
BreadcrumbItem shape
Section titled “BreadcrumbItem shape”| Field | Type | Description |
|---|---|---|
id | string | Unique identifier |
label | string | Visible text |
href | string | Link destination (omit for the current page) |
- The last item (no
href) is automatically markedaria-current="page". - Items without
hrefrender as plain text, not links. - Breadcrumbs are wrapped in
<nav>with thearia-labelfor landmark navigation.