lantern

Feedback

Toasts

Stacked notifications, bursts, actions and flash.

Stacked notifications via toast_group and LanternUI.send_toast/4. Fire one of each kind below.

Playground

Mount toast_group once, then send_toast from the LiveView.

Stack, actions, flash

Fire several to see the collapsed deck; hover or tab into it to fan out and pause timers.

Placement

Any corner or edge-center. Pick one, then fire a toast — it enters from the nearest edge.

API reference

Props and slots, introspected from the component.

Prop Type Default Description
class any nil Extra classes merged onto the root element.
flash map %{} Phoenix flash map; `:info` and `:error` render as toasts.
id string "lantern-toasts" Stable DOM id for the toast stack hook.
max integer 3 Maximum toast cards visible in the collapsed deck (1–10).
placement top-left | top-center | top-right | bottom-left | bottom-center | bottom-right "top-right" Corner or edge where the toast stack anchors.