# ListRow

> One line in a list you read, not pick: something small at the start, a title over a line of detail, a value at the end, a line under it. For a list of payments, deadlines or files.

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

## Install

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

```sh
npx github:Runceanu/rost add list-row
```

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 |
|---|---|---|---|
| `title` | slot |  |  |
| `description` | slot |  |  |
| `leading` | slot |  |  |
| `trailing` | slot |  |  |

## Anatomy

- `root`: An `<li>`. Put the rows in a `<ul>` with no bullets. The row has no fill, only the line under it; the last row keeps it too, as Figma's single row does.
- `leading`: Holds the Badge or icon at its own size.
- `text`: The title over the description, taking the room that's left.
- `title`: Body medium, in the main text colour. It can hold a small Badge after the words; they wrap under on a phone.
- `description`: Body regular, in the tertiary text colour.
- `trailing`: Body medium, in the main text colour, flush right.

## When to use

- **A list of things to read.** Payments coming up, deadlines, files. Each row has a title, maybe a line of detail and a value at the end.

## When not to use

- **Rows you pick.** A row that opens something or gets selected. That's **ListItem**.
- **Columns to compare.** When people read down a column, or sort it. That's **Table**.
- **One thing's details.** A term and its value, a row each. That's **DescriptionList**.

## Behaviour

Nothing to press. On a narrow screen the title wraps and the value stays on its line at the end.

## Accessibility

- **Element**: `<li>` in a `<ul>`, so a screen reader says how many rows there are.
- **Colour**: Title and value are 17:1 on the dark page, the description 7:1. In light the description is 5.4:1.

## Content

The title is the thing people scan for, often a date. Keep the description to one line. Format the value for the reader, with its currency.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `font-family/base` | `'General Sans Variable'` |
| `list-row/description` | `#999999` |
| `list-row/divider` | `#282828` |
| `list-row/title` | `#ededed` |
| `list-row/trailing` | `#ededed` |
| `spacing/gap/large` | `24px` |
| `spacing/gap/small` | `8px` |
| `spacing/gap/small-medium` | `12px` |
| `spacing/outline/small` | `1px` |
| `typography/body/font-size` | `16px` |
| `typography/body/font-weight/medium` | `500` |
| `typography/body/font-weight/regular` | `400` |
| `typography/body/letter-spacing` | `0px` |
| `typography/body/line-height` | `22px` |

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