# DialogProvider (@salmonui/overlays/dialog)

> The DialogProvider function of @salmonui/overlays/dialog: Hosts the dialogs of useConfirm() / useAlert() below it: a queue in its own state, at most one alert dialog at a time, nothing on the server.

Canonical: https://salmonui.dev/docs/reference/overlays/dialog/DialogProvider

```ts
import { DialogProvider } from '@salmonui/overlays/dialog';
```

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

## Reference

Kind: function

```ts
function DialogProvider(props: {
    readonly children?: ReactNode;
}): ReactElement;
```

Hosts the dialogs of `useConfirm()` / `useAlert()` below it: a queue in
its own state, at most one alert dialog at a time, nothing on the server.
