# ToastQueueSnapshot (@salmonui/notifications/toast)

> The ToastQueueSnapshot interface of @salmonui/notifications/toast: What getSnapshot() returns; a new object on every change.

Canonical: https://salmonui.dev/docs/reference/notifications/toast/ToastQueueSnapshot

```ts
import type { ToastQueueSnapshot } from '@salmonui/notifications/toast';
```

Entry index: https://salmonui.dev/docs/reference/notifications/toast (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/notifications/toast.md).

## Reference

Kind: interface

```ts
interface ToastQueueSnapshot {
    readonly toasts: readonly ToastState[];
    readonly visible: readonly ToastState[];
    readonly paused: boolean;
}
```

What `getSnapshot()` returns; a new object on every change.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `toasts` | `readonly toasts: readonly ToastState[];` |  | Every toast, oldest first: the visible ones, then the waiting ones. |
| `visible` | `readonly visible: readonly ToastState[];` |  | The first `max` toasts; the same array while they do not change. |
| `paused` | `readonly paused: boolean;` |  | True while paused (hover, focus, hidden document or `pause()`). |
