NoRedInk / noredink-ui / Nri.Ui.Tabs.V6

Changes from V5:

view : { title : Maybe String, alignment : Alignment, customSpacing : Maybe Basics.Float, onSelect : id -> msg, onFocus : String -> msg, selected : id, tabs : List (Tab id msg) } -> Html.Styled.Html msg


type Alignment
    = Left
    | Center
    | Right

Determines whether tabs are centered or floating to the left or right.


type alias Tab id msg =
{ id : id
, idString : String
, tabView : Html.Styled.Html msg
, panelView : Html.Styled.Html msg
, spaHref : Maybe String 
}

viewTabDefault : String -> Html.Styled.Html msg