Usage

Flash

Flash messages are used to provide updates or alerts, including feedback about the outcome of an action. They can indicate a warning, error, success, or general information.


All Flash messages in this design system are dismissive, meaning they require the user to interact in order to close the alert.


In situations where more than one flash message is needed, the FlashGroup component can be given a map of flashes:

<.flash_group flash={@flash} />