# Breadcrumb

> Horizontal trail of ancestor links ending in the current page.

- Group: Navigation
- Status: stable
- HTML page: https://design.ipmnx.com/components/breadcrumb/
- Spec: https://design.ipmnx.com/design/#nx-breadcrumb

## Preview

**Home / Jobs / #4412**

```html
<nav class="nx-breadcrumb" aria-label="Breadcrumb">
  <a href="#">Home</a>
  <span class="nx-breadcrumb__sep" aria-hidden="true">/</span>
  <a href="#">Jobs</a>
  <span class="nx-breadcrumb__sep" aria-hidden="true">/</span>
  <span class="nx-breadcrumb__current"
      aria-current="page">#4412</span>
</nav>
```

```tsx
<NxBreadcrumb
  items={[
    { label: "Home", href: "/" },
    { label: "Jobs", href: "/jobs" },
    { label: "#4412" },
  ]}
/>
```

## API

### React props (NxKit)

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `items` | `{label,href?}[]` |   | yes | Trail; the last item (no href) renders as the current page. |

### Classes

| Class | Description |
| --- | --- |
| `.nx-breadcrumb` | nav, wraps |
| `.nx-breadcrumb__sep` | Decorative separator, aria-hidden |
| `.nx-breadcrumb__current` | aria-current="page" |

## Accessibility

- Wrapped in `<nav aria-label="Breadcrumb">`; the current page is a `<span aria-current="page">`, not a link.
- Separators are aria-hidden: they're visual only, not read by a screen reader.

## Do / Don't

- Do: End with the current page as plain text, not a link.
- Don't add more than ~5 levels. Collapse deep trails.

## Related

- [Menu](https://design.ipmnx.com/components/menu.md)

---

Source: registry.js (NX Design System)
