Toast notification stack. Render once in a LiveView layout and push messages
with LanternUI.send_toast/4.
placement positions the stack in any corner or edge-center; toasts enter
from the nearest screen edge (sliding down from the top, up from the bottom).
max controls how many cards remain visible while the stack is collapsed.
Pass flash to bridge Phoenix :info and :error flashes into the deck.
<.toast_group placement="bottom-center" />
<.toast_group flash={@flash} />
Summary
Functions
Attributes
id(:string) - Stable DOM id for the toast stack hook. Defaults to"lantern-toasts".placement(:string) - Corner or edge where the toast stack anchors. Defaults to"top-right". Must be one of"top-left","top-center","top-right","bottom-left","bottom-center", or"bottom-right".max(:integer) - Maximum toast cards visible in the collapsed deck (1–10). Defaults to3.flash(:map) - Phoenix flash map;:infoand:errorrender as toasts. Defaults to%{}.class(:any) - Extra classes merged onto the root element. Defaults tonil.- Global attributes are accepted. Arbitrary HTML/
phx-*attributes passed through.