Toast Container

Saved

Profile updated successfully.

Published

The release is now visible.

<div style="padding: 1rem; min-height: 520px; display: grid; gap: 1.5rem;">
  <.toast_container
    id="toast-container-single-bottom-right"
    placement="bottom-right"
    toasts={[{"toast-1", %{message: "Profile updated successfully.", title: "Saved", kind: :info}}, {"toast-2", %{message: "The release is now visible.", title: "Published", kind: :success}}, {"toast-3", %{message: "Retry the request in a moment.", title: "Sync failed", kind: :error}}]}
   />
</div>

Draft autosaved.

<div style="padding: 1rem; min-height: 520px; display: grid; gap: 1.5rem;">
  <.toast_container
    id="toast-container-single-top-left"
    placement="top-left"
    toasts={[{"toast-4", %{message: "Updates may arrive late.", title: "Connection slow", kind: :warning}}, {"toast-5", %{message: "Draft autosaved.", kind: :info}}]}
    close_label="Dismiss toast"
   />
</div>

Queued

Export will dismiss itself.

<div style="padding: 1rem; min-height: 520px; display: grid; gap: 1.5rem;">
  <.toast_container
    id="toast-container-single-auto-dismiss"
    label="Auto dismissing notifications"
    duration={60000}
    auto_dismiss
    toasts={[{"toast-auto-1", %{message: "Export will dismiss itself.", title: "Queued", kind: :success}}]}
   />
</div>