API reference: @salmonui/notifications/toast
ToastQueueSnapshotinterface
import type { ToastQueueSnapshot } from '@salmonui/notifications/toast';interface ToastQueueSnapshot {
readonly toasts: readonly ToastState[];
readonly visible: readonly ToastState[];
readonly paused: boolean;
}
What getSnapshot() returns; a new object on every change.
| Name | Signature | Description |
|---|---|---|
toasts | readonly toasts: readonly ToastState[]; | Every toast, oldest first: the visible ones, then the waiting ones. |
visible | readonly visible: readonly ToastState[]; | The first |
paused | readonly paused: boolean; | True while paused (hover, focus, hidden document or |