Status Bar

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/status-bar

API Reference

StatusBar

data
readonly StatusBarDatum[]

Observations in display order. The chart never generates or aggregates data.

Default—
statuses?
readonly StatusBarStatus[]

Override the default status labels and colors, or define your own states.

Default—
label?
string
Default—
activeId?
string | null
Default—
defaultActiveId?
string | null
Default—
onActiveChange?
((id: string | null) => void)
Default—
labels?
Partial<{ label: string; tableCaption: string; period: string; status: string; details: string; legend: string; inspect: string; empty: string; operational: string; degraded: string; outage: string; maintenance: string; unknown: string; }>

Override any built-in string, including the default status labels.

Default—
className?
string
Default—

StatusBarLegend

showCounts?
boolean
Defaultfalse
className?
string
Default—

StatusBarPlot

className?
string
Default—
barClassName?
string

Customize segment height and roundness independently of the 44px hit area.

Default—
showLabels?
boolean
Defaulttrue

StatusBarTooltip

className?
string
Default—
side?
"top" | "right" | "bottom" | "left"
Defaulttop

Updated