# ToastCloseEvent (@salmonui/notifications/toast)

> The ToastCloseEvent interface of @salmonui/notifications/toast: Passed to onClose.

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

```ts
import type { ToastCloseEvent } 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 ToastCloseEvent {
    readonly id: string;
    readonly reason: ToastCloseReason;
}
```

Passed to `onClose`.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `reason` | `readonly reason: ToastCloseReason;` |  |  |
