# Timeline

> What happened to something, in order: a column of TimelineItems, each a dot on a line with what happened and when.

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

## Install

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

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

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 |
|---|---|---|---|
| `children` | slot |  |  |

## Anatomy

- `root`: An `<ol>`, so the events are counted. The items sit straight on top of each other: each one's line runs down to the next one's dot.

## When to use

- **The history of one thing.** An invoice that was drafted, sent, opened and paid. A vault that was set up and then shared.

## When not to use

- **Steps still to do.** A Timeline is what already happened. Steps someone has to go through are a **Stepper**.
- **A feed.** Many unrelated things from many places. That's a list of **ListItems**.

## Behaviour

It lays the items in a column and tells the last one it's last, so its line stops at its dot.

## Accessibility

- **Element**: `<ol>`, so a screen reader says how many events there are.
- **Name**: Give it an `aria-label` when the heading above it doesn't say what it's the history of.

## Content

Each item says what happened in a few words, past tense: Sent to Client 1, Paid.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `spacing/gap/none` | `0px` |

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