View Source LiveToast (Live Toast v0.1.0)

LiveComponent for displaying toast messages.

Summary

Functions

Merges a new toast message into the current toast list.

toast_group/1 is just a small Phoenix.Component wrapper around the LiveComponent for toasts. You can use the LiveComponent directly if you prefer, this is just a convenience.

Functions

Link to this function

send_toast(kind, msg, id \\ "toast-group")

View Source

Merges a new toast message into the current toast list.

toast_group/1 is just a small Phoenix.Component wrapper around the LiveComponent for toasts. You can use the LiveComponent directly if you prefer, this is just a convenience.

Attributes

  • flash (:map) (required) - the map of flash messages.
  • id (:string) - the optional id of flash container. Defaults to "toast-group".