Module to add Buttons to your app
Type hint buttons
type alias model =
{ headerTitle : String
, headerButtons : List (Button Msg)
}
view : Button msg
Init a button
viewIf : Basics.Bool -> Button msg
Init a button if True
text : String -> Button msg -> Button msg
Set the text
icon : FeatherIcons.Icon -> Button msg -> Button msg
Set an icon
onClick : msg -> Button msg -> Button msg
Fire a Msg when clicked
href : String -> Button msg -> Button msg
Open a href url when clicked
hrefBlank : String -> Button msg -> Button msg
Open a href url when clicked
small : Button msg -> Button msg
Make the button small
isLoading : Basics.Bool -> Button msg -> Button msg
Display as loading, removing the click Msg
isDisabled : Basics.Bool -> Button msg -> Button msg
Display as disabled, removing the click Msg
green : Basics.Bool -> Button msg -> Button msg
Style it green
red : Basics.Bool -> Button msg -> Button msg
Style it red
render : Button msg -> Html.Styled.Html msg
Render the button