achutkiran / material-components-elm / Mwc.Button

Material Button. It is elm wrapper for Material Web components button Used Elm-css for Styling

normal : Property msg

Normal Button Type

raised : Property msg

Raised Button Type

unelevated : Property msg

unelevated Button Type

outlined : Property msg

outlined Button Type

dense : Property msg

Makes button dense

disabled : Basics.Bool -> Property msg

Makes Button disabled

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

Additional properties like css

icon : String -> Property msg

Set icon to Button

label : String -> Property msg

Sets Label to button

onClick : msg -> Property msg

Onclick Handler

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

Renders a button