jxxcarlson/elm-widget/3.2.1

NOTE: the latest version is 3.3.0

Widget.Button

Types

= Left
| Center
type Role
= Primary
| Outline
type Size
= Bounded Int
| Unbounded
= Square
| Rounded

Construct and render

make : msg -> String -> Button msg
toElement : Button msg -> Element msg

Options

withAlignment : Alignment -> Button msg -> Button msg
withBackgroundColor : Color -> Button msg -> Button msg
withFontColor : Color -> Button msg -> Button msg
withHeight : Size -> Button msg -> Button msg
withRole : Role -> Button msg -> Button msg
withSelected : Bool -> Button msg -> Button msg
withSelectedBackgroundColor : Color -> Button msg -> Button msg
withSelectedFontColor : 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