jxxcarlson / elm-widget / Widget.Button

Types


type Alignment
    = Left
    | Center


type Role
    = Primary
    | Outline


type Size
    = Bounded Basics.Int
    | Unbounded


type ButtonStyle
    = Square
    | Rounded

Construct and render

make : msg -> String -> Button msg

toElement : Button msg -> Element msg

Options

withAlignment : Alignment -> Button msg -> Button msg

withBackgroundColor : Element.Color -> Button msg -> Button msg

withFontColor : Element.Color -> Button msg -> Button msg

withHeight : Size -> Button msg -> Button msg

withRole : Role -> Button msg -> Button msg

withSelected : Basics.Bool -> Button msg -> Button msg

withSelectedBackgroundColor : Element.Color -> Button msg -> Button msg

withSelectedFontColor : Element.Color -> Button msg -> Button msg

withStyle : ButtonStyle -> Button msg -> Button msg

withTitle : String -> Button msg -> Button msg

withWidth : Size -> Button msg -> Button msg

withIcon : Svg msg -> Button msg -> Button msg