View as Markdown

API reference: @salmonui/overlays/dialog

DialogProviderfunction

import { DialogProvider } from '@salmonui/overlays/dialog';
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.