rundis/elm-bootstrap/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Bootstrap.Alert

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Alert.info
    [ Alert.h4 "For your information"
    , p [] [ text "An information message of sorts"]
    , Alert.link [ href "/somelink" ] [ text "link"]
    ]

Contextual alerts

success : List (Html msg) -> Html msg

Alert signaling success

  • children List of child elements
info : List (Html msg) -> Html msg

Alert information

  • children List of child elements
warning : List (Html msg) -> Html msg

Alert signaling a warning of sorts

  • children List of child elements
danger : List (Html msg) -> Html msg

Alert signaling an error

  • children List of child elements

Styled content

h1 : List (Attribute msg) -> List (Html msg) -> Html msg

Alert h1 header with appropriate color styling

  • attributes List of attributes
  • children List of child elements
h2 : List (Attribute msg) -> List (Html msg) -> Html msg

Alert h2 header with appropriate color styling

  • attributes List of attributes
  • children List of child elements
h3 : List (Attribute msg) -> List (Html msg) -> Html msg

Alert h3 header with appropriate color styling

  • attributes List of attributes
  • children List of child elements
h4 : List (Attribute msg) -> List (Html msg) -> Html msg

Alert h3 header with appropriate color styling

  • attributes List of attributes
  • children List of child elements
h5 : List (Attribute msg) -> List (Html msg) -> Html msg

Alert h5 header with appropriate color styling

  • attributes List of attributes
  • children List of child elements
h6 : List (Attribute msg) -> List (Html msg) -> Html msg

Alert h6 header with appropriate color styling

  • attributes List of attributes
  • children List of child elements