View Source LiveToast (Live Toast v0.2.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
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".connected(:boolean) - whether we're in a liveview or not. Defaults tofalse.