# AlertComponent

A short message that belongs to the screen: info, success, warning or error.

```java
add(new AlertComponent(at(new Box("saved", 10, 10, 200, 0)), AlertComponent.Variant.SUCCESS,
        words.get("mymod.saved.title"), words.get("mymod.saved.body"))
        .dismissible(true)
        .onDismiss(this::layout)
        .fit());
```

## Variants

- Variants

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