fabiommendes / elm-daisy-ui / Daisy.Warn

Type safe semantic warnings

Some Daisy elements accept those warnings to change appearance.


type Warn
    = Neutral
    | Info
    | Success
    | Warning
    | Error

Represent a kind of warning intent.

Usually it is used for presentation purposes.

Utilities

class : String -> Warn -> Html.Attribute msg

Create a warn class from prefix

name : Warn -> String

Convert warning to string

icon : Warn -> Basics.Int -> Material.Icons.Types.Coloring -> Svg msg

Create a warn icon