nixCodeX/elm-bootstrap/2.0.1

NOTE: the latest version is 3.1.1

Renamed to aDifferentJT/elm-bootstrap. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as nixCodeX/elm-bootstrap still install under that name. 13 versions of 13 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/aDifferentJT/elm-bootstrap.

What we checked: The repo moved to github.com/aDifferentJT/elm-bootstrap. Rebuilt with git archive from commit 77a30ed727b0 of https://github.com/aDifferentJT/elm-bootstrap (zip prefix nixCodeX-elm-bootstrap-77a30ed/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 d4637469f6c86d5f9055b35cec2e56a92970c868.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/nixCodeX/elm-bootstrap/zipball/2.0.1/

Bootstrap.Button

Use Bootstrap’s custom button styles for actions in forms, dialogs, and more. Includes support for a handful of contextual variations and sizes. You can also group a series of buttons together on a single line with the button group.

Buttons

button : List (Option msg) -> List (Html msg) -> Html msg

Create a button

Button.button [ Button.primary ] [ text "Primary" ]
  • options List of styling options
  • children List of child elements
linkButton : List (Option msg) -> List (Html msg) -> Html msg

Create a link that appears as a button

Button.linkButton [ Button.primary ] [ text "Primary" ]
  • options List of styling options
  • children List of child elements
radioButton : Bool -> List (Option msg) -> List (Html msg) -> Html msg

Create a radio input that appears as a button

Button.radioButton True [ Button.primary ] [ text "Primary" ]
  • checked Default value
  • options List of styling options
  • children List of child elements
checkboxButton : Bool -> List (Option msg) -> List (Html msg) -> Html msg

Create a checkbox input that appears as a button

Button.checkboxButton True [ Button.primary ] [ text "Primary" ]
  • checked Default value
  • options List of styling options
  • children List of child elements
submitButton : List (Option msg) -> List (Html msg) -> Html msg

Shorthand to creae a button with type "submit"

Button.submitButton [ Button.primary ] [ text "Primary" ]
  • options List of styling options
  • children List of child elements
resetButton : List (Option msg) -> List (Html msg) -> Html msg

Shorthand to creae a button with type "reset"

Button.resetButton [ Button.primary ] [ text "Primary" ]
  • options List of styling options
  • children List of child elements

Button options

attrs : List (Attribute msg) -> Option msg

When you need to customize a button element with standard Html.Attribute use this function to create it as a button option

onClick : msg -> Option msg

Option to fire a message when a button is clicked

disabled : Bool -> Option msg

Option to disable a button.

type alias Option msg =
Option msg

Opaque type reresenting available options for styling a button

Roled

primary : Option msg

Option to color a button to signal a primary action

secondary : Option msg

Option to color a button to signal a secondary action

success : Option msg

Option to indicate a successful or positive action

info : Option msg

Option to indicate a info action. Typically used for alerts.

warning : Option msg

Option to indicate an action that should be taken with caution

danger : Option msg

Option to indicate an action that is potentially negative or dangerous

light : Option msg

Option to create a light button

dark : Option msg

Option to create a dark button

Outlined

outlinePrimary : Option msg

Option to outline a button to signal a primary action

outlineSecondary : Option msg

Option to outline a button to signal a secondary action

outlineSuccess : Option msg

Option to outline an indicatation of a successful or positive action

outlineInfo : Option msg

Option to outline an info action. Typically used for alerts.

outlineWarning : Option msg

Option to outline an action that should be taken with caution

outlineDanger : Option msg

Option to outline an action that is potentially negative or dangerous

outlineLight : Option msg

Option to create a light outlined button

outlineDark : Option msg

Option to create a dark outlined button

Size

small : Option msg

Option to make a button small

large : Option msg

Option to make a button large

Block

block : Option msg

Option to create block level buttons—those that span the full width of a parent