# Breadcrumb

> Where this page sits, from the top down. Links to the pages above it, a small chevron between, and this page's name last.

| | |
|---|---|
| Kind | component |
| Contract | `review` · [breadcrumb.contract.yaml](https://github.com/Runceanu/rost/blob/master/contracts/breadcrumb.contract.yaml) |
| Guidance | `proposed` |
| Source | [Figma 742:29](https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=742-29) · read 2026-11-16 · frozen 2026-11-16 |
| Implemented in | nowhere yet |

## Install

It lands in `src/rost/breadcrumb/`, with what it needs and its contract:

```sh
npx github:Runceanu/rost add breadcrumb
```

Then import `src/rost/fonts.css` and `src/rost/tokens.css` once, at the root of the app. More on this in [Install](https://rost.build/docs/install.md).

## Props

| Prop | Type | Values | Default |
|---|---|---|---|
| `items` | slot |  |  |

## Anatomy

- `root`: A `<nav aria-label="Breadcrumb">` in paragraph type.
- `list`: An `<ol>` in a row that wraps, 4px between its parts.
- `item`: A page above this one: a quiet Link, in the secondary text colour, then a separator.
- `separator`: Rost's chevron-right, 16px, as a mask in the tertiary colour. Hidden from screen readers: the list says the order.
- `current`: This page, in the main text colour. Not a link: `aria-current="page"`.

## When to use

- **Deep pages.** A page three or more levels down, like an invoice inside a client inside a year, so getting back up is one click.

## When not to use

- **The main way around.** Moving between the top sections of an app. That's **Navigation**.
- **Steps.** Steps in a form, one after another. That's a stepper, and Rost doesn't have one yet.

## Behaviour

Every page above this one is a link; this page is last and isn't. On a narrow screen the row wraps. I don't shorten long trails yet: if a trail is longer than four, it probably needs a different structure.

## Accessibility

- **Element**: `<nav aria-label="Breadcrumb">` around an `<ol>`, so it's a landmark and the order is a list.
- **Name**: Breadcrumb.
- **Keyboard**: Tab goes through the links, the way it does through any links.
- **Colour**: The links are 11:1 on the dark page, this page's name 14:1.

## Content

Each page by the name it has on its own page, in sentence case.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `breadcrumb/current` | `#ededed` |
| `breadcrumb/link` | `#d3d9d5` |
| `breadcrumb/separator` | `#999999` |
| `font-family/base` | `'General Sans Variable'` |
| `spacing/gap/2xsmall` | `4px` |
| `spacing/gap/none` | `0px` |
| `spacing/size/2xsmall` | `16px` |
| `typography/paragraph/font-size` | `14px` |
| `typography/paragraph/font-weight/regular` | `400` |
| `typography/paragraph/letter-spacing` | `0px` |
| `typography/paragraph/line-height` | `20px` |

## No token, on purpose

| Part | Property | Value | Why |
|---|---|---|---|
| `separator` | `mask` | `url(./icon-chevron-right.svg) center / contain no-repeat` | The icon file itself. |

See it live, with every value of every variant: [rost.build/components/breadcrumb/](https://rost.build/components/breadcrumb/)
