rundis / elm-bootstrap / Bootstrap.Carousel.Slide

A slide is used as part of a carousel

Slide.config []
    (Slide.image [ Attributes.alt "slide 1" ] "https://...")
    |> Slide.caption []
        [ h3 [] [ text "First slide label" ]
        , p [] []
        ]

Slide


type alias Config msg =
Bootstrap.Carousel.SlideInternal.Config msg

Opaque type that defines the view configuration information of your slide

config : List (Html.Attribute msg) -> SlideContent msg -> Config msg

Creates an initial/default view configuration for a slide

caption : List (Html.Attribute msg) -> List (Html msg) -> Config msg -> Config msg

Add a caption to your slide

The captions are automatically hidden on small devices.

Content


type alias SlideContent msg =
Bootstrap.Carousel.SlideInternal.SlideContent msg

Opaque type that defines the content of a slide

image : List (Html.Attribute msg) -> String -> SlideContent msg

Populate a slide with an image.

customContent : Html msg -> SlideContent msg

Populate a slide with whatever html you want