mind-gym/elements/5.4.2

MG.Alert

Alerts

Alert messages, used to display errors and other important information.

type Alert
error : List String -> Alert
success : List String -> Alert
render : Viewport -> Maybe Alert -> Element msg

Because we generally expect alerts to be displayed conditionally, this function takes a Maybe Alert. If the value is Nothing, then no alert is rendered.