# DialogComponent

A modal dialog with a title, a message and up to three actions.

```java
add(new ButtonComponent(at(new Box("delete", 10, 10, 90, 20)), words.get("mymod.delete"),
        () -> confirm.open(this)));
// Last, so that it is drawn on top and offered every input first.
confirm = add(DialogComponent.confirmDestructive(bounds(),
        words.get("mymod.delete.title"), words.get("mymod.delete.body"),
        words.get("mymod.delete"), words.get("gui.cancel"), this::delete, null));
```

## Variants

- Confirm

Page: https://minuit.dryaides.com/components/dialog.html
