uncover-co/elm-widgets/2.6.0

NOTE: the latest version is 2.28.0

W.Button

List (Attribute msg)
-> { label : List (Html msg)
, onClick : msg
}
-> Html msg
viewDummy : List (Attribute msg) -> List (Html msg) -> Html msg

Useful for HTML/CSS-based triggers.

W.Modal.viewToggle "toggle-on-click"
    [ W.Button.viewDummy []
        [ H.text "Open or close modal" ]
    ]

Colors

By default, neutral color is used.

theme : ButtonTheme -> Attribute msg
type alias ButtonTheme =
{ foreground : String
, background : String
, aux : String
}

Styles

State

disabled : Bool -> Attribute msg

Html

htmlAttrs : List (Attribute msg) -> Attribute msg
type Attribute msg