nathanjohnson320/elm-ui-components/2.0.3

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

Details

ElmUIC.Checkbox

A styled checkbox

type alias Checkbox =
{ checked : Bool
, kind : ColorSetting
, size : Size
}

Base model for a checkbox

defaultCheckbox : Checkbox

Instantiates the default properties of a checkbox

{ defaultCheckbox | checked = model.checked }
Theme
-> Checkbox
-> List (Attribute msg)
-> List (Html msg)
-> Html msg

A styled checkbox

checkbox defaultTheme
    { defaultCheckbox | size = Medium, checked = model.checked }
    [ onClick Check ]
    []