Flash

Renders flash notices.

Read more Read less

Examples

<.flash kind={:info} flash={@flash} />
<.flash kind={:info} phx-mounted={show("#flash")}>Welcome Back!</.flash>
Attribute Type Documentation Default Value
id :string the optional id of flash container
flash :map the map of flash messages to display %{}
title :string
kind :atom used for styling and flash lookup
rest :global the arbitrary HTML attributes to add to the flash container
inner_block :slot the optional inner block that renders the flash message
Error message