# Toast

Feedback after an action. Stays until dismissed.

Import from `@a31labs/rax/toast`.

## Usage

```tsx
<ToastProvider><App /></ToastProvider>

const toast = useToast();
toast.show({ title: "Deploy finished", tone: "ok", action: { label: "View", onClick: open } });
```

## Rules

Wrap the app in `ToastProvider`, call `useToast().show({ title, description, tone, action })`. The subpath also exports `Toast`, the presentational toast (`title`, `description`, `tone`, `action`, `onDismiss`, `className`), for static previews; the root export has only `ToastProvider` and `useToast`. Toasts stay until dismissed (close button always present) with an optional single action such as "Undo". The region is announced with `role="status"`. While a modal dialog is open, toasts remain clickable without closing it; keyboard users reach them after the dialog closes.

Page: https://rax.a31.at/components/toast
