# CoworkDialog

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

## Properties

### alert?

```ts
alert?: object;
```

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

#### text?

```ts
text?: string;
```

#### title?

```ts
title?: string;
```

#### variant?

```ts
variant?: "default" | "destructive";
```

***

### buttons?

```ts
buttons?: CoworkDialogButton[];
```

Default: one OK.

***

### detail?

```ts
detail?: string;
```

***

### fields?

```ts
fields?: CoworkDialogField[];
```

***

### message

```ts
message: string;
```

***

### scope?

```ts
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?

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

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