nathanjohnson320/elm-ui-components/2.0.4

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.0.4 found (3 same-name repos checked); no cached copy. Use another version.

Details

ElmUIC.FileInput

A styled FileInput element

type alias FileInput =
{ kind : ColorSetting
, size : Size
, text : Color
, file : Maybe File
}

Base model for a fileInput

defaultFileInput : FileInput

Instantiates the default properties of the fileInput

{ defaultFileInput | kind = Warning }
Theme
-> FileInput
-> List (Attribute msg)
-> List (Html msg)
-> Html msg

A styled file input

fileInput defaultTheme
    { defaultFileInput | file = model.selectedFile, kind = Danger }
    [ onClick SelectFile ]
    []