QiTASC/hatchinq/17.0.1

NOTE: the latest version is 29.0.0

Hatchinq.Snackbar

Exposed

type alias Config msg =
{ theme : Theme
, lift : Message msg -> msg
}
type Content msg
= Plain String
| WithAction String String msg
type Message msg
type alias State msg =
{ values : List (Content msg)
, currentValue : Maybe (Content msg)
, id : Int
, isOpen : Bool
}
type alias View msg =
{ state : State msg }
alert : (Message msg -> msg) -> Content msg -> Cmd msg
Config msg
-> List (Attribute InternalConfig)
-> View msg
-> Element msg
dismissible : Attribute InternalConfig
maximumWidth : Int -> Attribute InternalConfig
init : State msg
(Message msg -> msg)
-> Message msg
-> State msg
-> ( State msg, Cmd msg )