Defines a Button component
Defines the available button colors
Primary
: used to get users main focusSecondary
: used as an accent to Primary
Warn
: used to indicate a destructive and/or dangerous actionNeutral
: used when little focus should be put on the buttonCustom
: when custom styling is neededDefines the emphasis of the button
Defines the content of the button
view : { onClick : Maybe msg, color : ButtonColor, emphasis : ButtonEmphasis } -> ButtonContent -> Html.Styled.Html msg
Returns a view of a button
This should be used whenever possible.
You can use customView
if you need to
customize the button.
customView : List Css.Style -> List (Html.Styled.Attribute msg) -> { onClick : Maybe msg, color : ButtonColor, emphasis : ButtonEmphasis } -> ButtonContent -> Html.Styled.Html msg
Returns a custom view of a button.
iconButton : List (Html.Styled.Attribute msg) -> { onClick : Maybe msg, icon : Ui.Icon.Icon, tooltip : String } -> Accessibility.Styled.Html msg
A view of an icon button which can be useful when we have little space