# ToastStack

> Where toasts go when there's more than one. A column, newest at the bottom, fixed to the bottom of the window or in place.

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

## Install

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

```sh
npx github:Runceanu/rost add toast-stack
```

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 |
|---|---|---|---|
| `placement` | enum | `bottom` `inline` | `bottom` |
| `children` | slot |  |  |

## Anatomy

- `root`: A `<div>` labelled Notifications. It lays the toasts out in a column, centred, 8px apart. The toasts say themselves what they are.

## When to use

- **More than one at a time.** Two things finished close together. The newer one goes at the bottom, nearest where the eye already is.

## When not to use

- **A list of everything.** A history of what happened belongs on a page, not in a stack that keeps growing. Three is plenty; let the oldest go.

## Behaviour

It only lays toasts out. Which ones show and for how long is the app's: take each away after a few seconds, or when it's closed. At the bottom of the window it floats, centred, 24px up.

## Accessibility

- **Element**: A `<div role="region" aria-label="Notifications">`, so someone can find it from the landmarks. Each Toast announces itself.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `spacing/gap/large` | `24px` |
| `spacing/gap/small` | `8px` |

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