← Back

StatusBar

[basic]

Status bar with live-updating fields

StatusBar Demo

Status bar with live-updating fields

For the full interactive experience:

$ mix raxol.playground

Code
{:ok, bar} =
  StatusBar.init(
    id: :playground_status_bar,
    separator: " | ",
    items: [
      %{key: "MODE", label: "NORMAL"},
      %{key: "File", label: "demo.ex"},
      %{key: "Pos", label: "1:1"}
    ]
  )

# Items are plain data: swap them on state changes, then draw with
# StatusBar.render/2.
demo j/k prev/next / focus demo esc back 15/42 demos