uncover-co / elm-widgets-alpha / W.Button

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

viewLink : List (Attribute msg) -> { label : List (Html msg), href : String } -> 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.

primary : Attribute msg

secondary : Attribute msg

success : Attribute msg

warning : Attribute msg

danger : Attribute msg

theme : ButtonTheme -> Attribute msg


type alias ButtonTheme =
{ foreground : String
, background : String
, aux : String 
}

Styles

outlined : Attribute msg

invisible : Attribute msg

rounded : Attribute msg

large : Attribute msg

small : Attribute msg

icon : Attribute msg

full : Attribute msg

State

disabled : Basics.Bool -> Attribute msg

Html

htmlAttrs : List (Html.Attribute msg) -> Attribute msg

noAttr : Attribute msg


type Attribute msg