lucamug / style-framework / Framework.Button

Demo

Buttons

Buttons

button : List Framework.Modifier.Modifier -> Maybe msg -> String -> Element msg

Generate an Input.button element. Example:

button [ Medium, Success, Outlined ] Nothing "Button"

buttonWidth : List Framework.Modifier.Modifier -> Maybe msg -> String -> Basics.Int -> Element msg

Buttons as Link

buttonLink : List Framework.Modifier.Modifier -> String -> String -> Element msg

buttonLinkWidth : List Framework.Modifier.Modifier -> String -> String -> Basics.Int -> Element msg

Customizable Buttons

buttonCustomizable : { width : Basics.Int, label : String, onPress : Maybe msg, modifiers : List Framework.Modifier.Modifier, extraAttrs : List (Element.Attribute msg) } -> Element msg

Button Attributes

buttonAttr : List Framework.Modifier.Modifier -> List (Element.Attribute msg)

Generate a list of attributes that can be attached to any element

row (buttonAttr [ Info ] ++ [ spacing 10 ]) [ text "Col 1", text "Col 2" ]

Introspection

Used internally to generate the Style Guide

introspection : { name : String, description : String, signature : String, variations : List ( String, List ( Element a1, String ) ) }