NoRedInk / noredink-ui / Nri.Ui.Carousel.V1

Patch changes:

view : { focusAndSelect : { select : id, focus : Maybe String } -> msg, selected : id, controlStyles : Basics.Bool -> List Css.Style, controlListStyles : List Css.Style, items : List (Item id msg) } -> { controls : Html.Styled.Html msg, slides : Html.Styled.Html msg }


type Item id msg

buildItem : { id : id, idString : String, slideHtml : Html.Styled.Html msg, controlHtml : Html.Styled.Html Basics.Never } -> Item id msg

Builds an selectable item in the Caroursel

controlHtml represents the element that will appear in the list of options.

slideHtml represents the element that will be shown in your carousel when this item is selected.