stnd.buildSTANDARD MANUAL2026-09-20

DialogManager

On this page

Renders confirmation dialogs triggered programmatically — mount <DialogManagerComponent client:load /> once in your root layout (Standard does this by default), then call confirm() from @stnd/ui/dialog.js anywhere; no props, no per-dialog markup. Bridges the dialogState store (set by confirm()) to an <AlertDialog>.

import { confirm } from "@stnd/ui/dialog.js";
const ok = await confirm({ title: "Delete this?", intent: "danger" });

Live example

Are you absolutely sure?

This action cannot be undone.