achutkiran/material-components-elm/1.2.1

Mwc.Switch

Material Switch. It is elm wrapper for Material Web components switch Used Elm-css for Styling

check : Bool -> Property msg

Sets Swotch to true

disable : Bool -> Property msg

Disables switch

extraAttributes : List (Attribute msg) -> Property msg

Additional properties like css

onClick : msg -> Property msg

OnClick Event

view : List (Property msg) -> Html msg

Renders switch