# Breadcrumb

The trail from the front of the app to this page.

Group: Navigation. Code: `components/software/navigation.tsx`. From the old system: Breadcrumb in @id-identity-as/ui/commerce. Live: https://design.id-hub.dk/software/breadcrumb

```tsx
import { Breadcrumb } from '@/components/software/navigation';

<Breadcrumb items={[{ label: 'Ordrer', href: '/ordrer' }, { label: 'Ordre 41028' }]} />
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| items (required) | `BreadcrumbItem[]` |  | { label, href? } from the start to here. The last item is the current page and has no href. |
| label | `string` | `'Brødkrumme'` | The name of the navigation, read aloud. |
| as | `ElementType` | `'a'` | The element to render a link with. |

Do:
- End the trail on the current page, as text.
- Use it from the third level down. Two levels need no trail.

Do not:
- Do not make the current page a link. A link to where you are is a dead end.
- Do not use a chevron as the separator. At body size it reads as a control; the separator is a slash.

Accessibility:
- A named navigation with an ordered list; the current page has aria-current="page".
- The separators are hidden from screen readers.

Tokens it uses:
- color.text.default
- color.text.muted
- type.body.sm
- type.heading.sm
- space.inline.2

---

Not drawn in Figma. Kasper decided on 20 November 2026 that internal software gets this set now, built only from the tokens. The look is ours until Peter draws it, and every open choice is a question in docs/SPOERGSMAAL-TIL-PETER.md. The public site, campaigns and brand surfaces use only the components drawn in Figma.

The rules for this set and all 33 components: https://design.id-hub.dk/software.md. Token values: https://design.id-hub.dk/tokens.md.

Index of everything, as text: https://design.id-hub.dk/llms.txt. Never invent a colour, a size, a component or a product fact: if it is not here, it does not exist yet.
