QiTASC / hatchinq / Hatchinq.Snackbar

Exposed


type alias Config msg =
{ theme : Hatchinq.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 : Basics.Int
, isOpen : Basics.Bool 
}


type alias View msg =
{ state : State msg }

alert : (Message msg -> msg) -> Content msg -> Platform.Cmd.Cmd msg

configure : Config msg -> List (Hatchinq.Attribute.Attribute InternalConfig) -> View msg -> Element msg

dismissible : Hatchinq.Attribute.Attribute InternalConfig

maximumWidth : Basics.Int -> Hatchinq.Attribute.Attribute InternalConfig

maximumActionButtonWidth : Basics.Int -> Hatchinq.Attribute.Attribute InternalConfig

init : State msg

update : (Message msg -> msg) -> Message msg -> State msg -> ( State msg, Platform.Cmd.Cmd msg )

icon : String -> Hatchinq.Attribute.Attribute InternalConfig

fontColor : Element.Color -> Hatchinq.Attribute.Attribute InternalConfig

backgroundColor : Element.Color -> Hatchinq.Attribute.Attribute InternalConfig