Data-driven grouped key figures (shipments, on time, receivables, payables, orders, attention): heroes with the change since you left, normal bands, sparklines, part bars, one-line ticker with glass dropdowns.
Click a figure: what it would open shows here.
Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing
$ npx shadcn@latest add @highcommand/kpi-stripCopies the source into your project and pulls in what it needs (7 other items). First time? Add the registry to components.json.
Command's key figures as groups with a hero: the nine figures in six groups (Shipments, On time, Receivables, Payables, Orders, Attention), each with one hero in the pixel face in its band's colour with its shape and the change since the person left beside it, a bar where it is part of a whole, the group's second figure, its sub-figure and its normal (or "no normal yet") in the facts, and the hero's 7-day line over its band at the right (it opens the 30-day explanation).
metricsrequiredreadonly Metric[]—The headline metrics, keyed as High Command keys them (shipments_active, shipments_at_risk, on_time_pct_30d, ar_open, ap_open, orders_open_sell, orders_open_buy, attention_open, stockout_risk_14d). A group whose metrics are missing is left out.
figuresreadonly KeyFigure[]—Each figure's history and normal band (the sparklines, the tone, "normal 31–40").
sincestring | null—When the person left (ISO): each hero shows its change since then, read from the figure's hourly history.
groupsreadonly KpiGroup[]KPI_GROUPSWhich groups, in what order (a saved layout).
labelsRecord<string, [string, string, string?]>FIGURE_LABELTitle, qualifier and definition per figure key.
hrefOf(key: string, view?: string) => stringdefaultHrefWhere a figure (or a part of it, `view`) opens: a worklist of its records.
ownFleetHrefstring'/fleet'Where the own-fleet sub-figures open.
onTrace(key: string, figure: KeyFigure) => void—The sparkline was clicked: open the figure's trend and breakdown (30 days).
impactstring | null—The figure key an impact line on the page ends at (said in its accessible name).
tickerboolean—One line per group with a dropdown (layout A). Default: on a desktop.
editingbooleanfalseThe strip's layout is being arranged: full cards, no ticker.
classNamestring—Extra class on the strip.