Skip to content

CoworkDialog

A dialog (cowork.ui.dialog): a question, a choice or a short form.

alert?: object;

Why the last answer was refused — ask again with it.

text?: string;
title?: string;
variant?: "default" | "destructive";

buttons?: CoworkDialogButton[];

Default: one OK.


detail?: string;

fields?: CoworkDialogField[];

message: string;

scope?: "window" | "pane";

"window" (default): over the whole window. "pane": over this pane only — ONLY for a choice that changes how things look (a theme), never one that creates, changes or deletes data.


type?: "error" | "warning" | "info" | "none";

The header icon — "none" for a plain question. Default "info".