Renders flash notices.
<.flash kind={:info} flash={@flash} /> <.flash kind={:info} phx-mounted={show("#flash")}>Welcome Back!</.flash>
This flash will disappear in 5 seconds.
This flash will disappear in 3 minutes.
This is an example of a warning message.
the unique id of the flash container
the map of flash messages to display
used for styling and flash lookup
the arbitrary HTML attributes to add to the flash container
text for an optional inline call-to-action link
href for the optional call-to-action link
a phx-click event (or JS command) for the call-to-action link, in place of an href
the optional inner block that renders the flash message