# Toaster

> The toast host/region. Mount once; trigger with `toast()`.

_Updated: 2026-06-04_

The toast host/region. Mount once; trigger with `toast()`.

## Installation

```bash
railbase ui add toaster
```

> [!NOTE]
> `railbase ui add` also copies the `sonner` component — they ship alongside this component automatically.

## Usage

```tsx
import { Toaster } from "@/lib/ui/toaster";

// app root:
<Toaster />

// anywhere:
toast("Done");
```

## Anatomy

Exported parts: `Toaster` · `toast` · `dismissToast`
