# ToastSpec

Shows a toast in the game's own stack, in the player's theme. A second toast with the same key replaces the first.

```java
Toasts.show("mymod", ToastSpec.of("World saved", "Backup 3 of 5")
        .icon(ItemView.of("minecraft:diamond"))
        .key("backup"));
```

## Variants

- Stack: Two toasts with a long body, seen half way and at the end of the slide.

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