achutkiran/material-components-elm/1.1.0

NOTE: the latest version is 1.2.1

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 : Bool -> Property msg

Makes Button disabled

extraAttributes : List (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 msg

Renders a button