nathanjohnson320/elm-ui-components/1.0.0

NOTE: the latest version is 2.3.0

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/Natim/elm-ui-components (a fork).

What we checked: Rebuilt with git archive from commit 7d986be9b826 of https://github.com/Natim/elm-ui-components (a fork) (zip prefix nathanjohnson320-elm-ui-components-ffcd8d3/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 d8462f1cf4ad49bbf22735cb574ec6c2f3e35249.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/nathanjohnson320/elm-ui-components/zipball/1.0.0/

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!" ]