Widgets / StatusBar

StatusBar

A bordered row with left, center, and right item groups.

StatusBar┌────────────────────────────────────────────────────┐│NORMAL main.fs ln 1, col 1│└────────────────────────────────────────────────────┘

Signature

StatusBar.statusBar
    (left: LayoutNode<'msg> list)
    (center: LayoutNode<'msg> list)
    (right: LayoutNode<'msg> list)
    : LayoutNode<'msg>

Parameters

parameter type what it is
left LayoutNode list Items pinned to the left (e.g. a mode badge).
center LayoutNode list Items in the middle (e.g. the file name).
right LayoutNode list Items pinned to the right (e.g. a cursor position).

Example

StatusBar.statusBar
    [ Text.text "NORMAL" theme.accent ]
    [ Text.text "main.fs" theme.fgMuted ]
    [ Text.text "ln 1, col 1" theme.fgSubtle ]