# useToast (@salmonui/notifications/toast)

> The useToast function of @salmonui/notifications/toast: The queue of the nearest Toaster. Throws outside a Toaster.

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

```ts
import { useToast } 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: function

```ts
function useToast(): ToastQueue;
```

The queue of the nearest `Toaster`. Throws outside a `Toaster`.
