---
title: Breadcrumb
description: Trail of page ancestors with separators.
---

A breadcrumb shows where the current page sits. Items are separated by chevron
icons; the last item (no `href`) renders as the current page.

## Two levels

```ts
breadcrumb([
  { name: 'Home', href: '/' },
  { name: 'Contribution' },
]);
```

## Three levels

```ts
breadcrumb([
  { name: 'Home', href: '/' },
  { name: 'Contribution', href: '/contribution/overview/' },
  { name: 'Components', href: '/contribution/components/' },
  { name: 'Callout' },
]);
```

## Props

<PropsTable
  labels={{ prop: 'Option', type: 'Type' }}
  type={{
    name: { type: 'string', description: 'Display name.' },
    href: { type: 'string', description: 'Link target; omit for the last (current) item.' },
  }}
/>

## Notes

- The container is `<nav aria-label="Breadcrumb">`; the current page uses
  `.cpd-breadcrumb-current` (not a link).
- On the real docs pages the `PageTitle` override renders this breadcrumb
  automatically from the sidebar tree.
