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 unique id of the flash container

flash :map

the map of flash messages to display

%{}
show_close_button :boolean true
kind :atom

used for styling and flash lookup

icon :string
rest :global

the arbitrary HTML attributes to add to the flash container

timeout :integer 5000
inner_block :slot

the optional inner block that renders the flash message