stnd.build

Stat

One figure and what it measures: a label, a big value, and optionally a hint (the unit of comparison) and a change. Zero JS. tone colours the figure when it says something about health.

<Stat label="Active users" value="2 653" hint="last 7 days" change="+4 %" tone="success" />

Props

Type Name Description
string label
string | number value
string hint?
string change? The change since last time, as shown (“+4 %“).
“success” | “warning” | “error” tone?
string class?