achutkiran / material-components-elm / Mwc.Switch

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

check : Basics.Bool -> Property msg

Sets Swotch to true

disable : Basics.Bool -> Property msg

Disables switch

extraAttributes : List (Html.Styled.Attribute msg) -> Property msg

Additional properties like css

onClick : msg -> Property msg

OnClick Event

view : List (Property msg) -> Html.Styled.Html msg

Renders switch