NoRedInk/noredink-ui/21.2.0

NOTE: the latest version is 35.9.3

Nri.Ui.Tabs.V6

Changes from V5:

  • Uses TabsInternal under the hood
  • Allows user to focus on the selected tabpanel
{ title : Maybe String
, alignment : Alignment
, customSpacing : Maybe Float
, onSelect : id -> msg
, onFocus : String -> msg
, selected : id
, tabs : List (Tab id msg)
}
-> Html msg
= 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 msg
, panelView : Html msg
, spaHref : Maybe String
}
viewTabDefault : String -> Html msg