# TimelineItem

> One event in a Timeline: a 12px dot, a line down to the next event, what happened, when, and a sentence if it needs one.

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

## Install

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

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

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 |
|---|---|---|---|
| `current` | boolean |  | `false` |
| `last` | boolean |  | `false` |
| `title` | slot |  |  |
| `time` | slot |  |  |
| `children` | slot |  |  |

## Anatomy

- `root`: An `<li>`: the rail on the left, the words on the right, 12px apart.
- `rail`: A 12px column for the dot and the line. 4px above the dot puts it in the middle of the title's line.
- `dot`: A 12px circle. Grey for what's past, green for where things are now.
- `line`: A 1px line from 4px under the dot to the bottom of the item, where the next dot starts 4px further down.
- `content`: The title, the time and the sentence in a column, 2px apart, with 24px under them before the next event.
- `title`: Paragraph type, medium weight, the main text colour.
- `time`: Label type in the tertiary grey.
- `body` (optional): Paragraph type, a step quieter than the title.

## When to use

- **Now in green.** Mark the event that says where things stand now as current. Only one, and usually the newest.

## When not to use

- **Colour as the only signal.** The green dot means now, but the title has to say what happened. Nobody should need the colour to read it.

## Behaviour

The dot and line are drawing. The title, the time and the sentence are the content.

## Accessibility

- **Element**: `<li>`, with the time in a `<time>` element. The current one has `aria-current="step"`. The dot and line are hidden from screen readers.
- **Colour**: The past dot is 4.3:1 on the dark page, the current one 10:1. The title is 17:1, the time 7:1.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `font-family/base` | `'General Sans Variable'` |
| `spacing/gap/2xsmall` | `4px` |
| `spacing/gap/3xsmall` | `2px` |
| `spacing/gap/large` | `24px` |
| `spacing/gap/none` | `0px` |
| `spacing/gap/small-medium` | `12px` |
| `spacing/outline/small` | `1px` |
| `spacing/radius/full` | `10000px` |
| `spacing/size/3xsmall` | `12px` |
| `timeline-item/body` | `#d3d9d5` |
| `timeline-item/current/dot` | `#00d669` |
| `timeline-item/line` | `#3a3a3a` |
| `timeline-item/past/dot` | `#747573` |
| `timeline-item/time` | `#999999` |
| `timeline-item/title` | `#ededed` |
| `typography/label/font-size` | `12px` |
| `typography/label/font-weight/regular` | `400` |
| `typography/label/letter-spacing` | `0px` |
| `typography/label/line-height` | `14px` |
| `typography/paragraph/font-size` | `14px` |
| `typography/paragraph/font-weight/medium` | `500` |
| `typography/paragraph/font-weight/regular` | `400` |
| `typography/paragraph/letter-spacing` | `0px` |
| `typography/paragraph/line-height` | `20px` |

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