NoRedInk/noredink-ui/6.29.1

NOTE: the latest version is 35.9.3

Nri.Ui.Tabs.V3

= Left
| Center
| Right

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

type alias Config id msg =
{ title : Maybe String
, onSelect : id -> msg
, tabs : Zipper (Tab id)
, content : id -> Html msg
, alignment : Alignment
}
type alias LinkConfig msg =
{ title : Maybe String
, tabs : Zipper TabLink
, content : Html msg
, alignment : Alignment
}

Configure a set a tab links

type alias Tab id =
{ label : String
, id : id
}
view : Config id msg -> Html msg
viewCustom : Config id msg -> (Tab id -> Html msg) -> Html msg

Defaults

viewTabDefault : Tab id -> Html msg