nathanjohnson320/elm-ui-components/2.1.1

NOTE: the latest version is 2.3.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/nathanjohnson320/elm-ui-components is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 2.1.1 found (3 same-name repos checked); no cached copy. Use another version.

Details

ElmUIC.Toast

A styled toast notification

type alias Toast =
{ kind : ColorSetting
, size : Size
, text : Color
, z : Int
, position : Position
, visible : Bool
, transitionDirection : Position
}

Base model for a toast

= Top
| Left
| Bottom
| Right
| TopLeft
| TopRight
| BottomLeft
| BottomRight

Possible screen positions for the toast

defaultToast : Toast

Instantiates the default properties of the toast

{ defaultToast | position = Top, visible = True }
toast : Theme -> Toast -> List (Attribute msg) -> List (Html msg) -> Html msg

A styled toast notification

toast
    defaultTheme
    { defaultToast
        | position = TopRight
        , transitionDirection = TopRight
        , visible = model.checked
    }
    []
    [ text "Notify things!" ]