JeremyBellows / elm-bootstrapify / Bootstrap.Buttons

Functions for bootstrap buttons

Buttons


type ButtonOption
    = BtnDefault
    | BtnPrimary
    | BtnSuccess
    | BtnWarning
    | BtnInfo
    | BtnDanger
    | BtnLink

A set of options for rendering a btn


type ButtonSizeModifier
    = BtnLarge
    | BtnBlock
    | BtnSmall
    | BtnExtraSmall
    | NavbarBtn

A set of sizes for rendering a btn


type ButtonModifier
    = BtnCollapse String

Modifiers for button attributes

btn : ButtonOption -> List ButtonSizeModifier -> List ButtonModifier -> List (Html.Attribute msg) -> List (Html msg) -> Html msg

Generates a button html element

btn BtnPrimary [ BtnBlock, BtnLarge ] [ BtnCollapse "#idOfElement, .orClass" ] [] [ text "Hello world!" ]