Interface ConfirmDialogParams

interface ConfirmDialogParams {
    cancelLabel?: string;
    confirmLabel?: string;
    container?: HTMLElement;
    message: string | HTMLElement;
    title?: string;
    variant?: "default" | "danger";
}

Properties

cancelLabel?: string

Label for the cancel button. Defaults to "Cancel".

confirmLabel?: string

Label for the confirm button. Defaults to "OK".

container?: HTMLElement

DOM container the dialog mounts into. Defaults to document.body. Same convention as LoaderProgressDialog.

message: string | HTMLElement

Body message. Required. Plain text is rendered safely via textContent; if the caller needs inline markup they can supply a pre-built HTMLElement instead.

title?: string

Header text. Defaults to "Confirm".

variant?: "default" | "danger"

Visual variant for the confirm button. "danger" paints it red so destructive actions read as such; "default" uses the studio accent blue. Defaults to "default".