Widgets / Tabs

Tabs

A horizontal label strip with one active tab.

Tabs┌──────────────────────────────────┐│ Files Search Git │└──────────────────────────────────┘

Signature

Tabs.strip
    (activeStyle: Style) (inactiveStyle: Style)
    (selected: int) (labels: string list)
    : LayoutNode<'msg>

Parameters

parameter type what it is
selected int Index of the active tab (your model owns it).
labels string list The tab labels.

Example

Tabs.strip theme.accentStrong theme.fgMuted model.Tab
    [ "Files"; "Search"; "Git" ]