Stat
A cardless figure — value, muted unit, caption and delta — that drops into any card, cell or hero without bringing a surface of its own.
import { Stat } from "@pestoui/core"Sizes
size scales the value and its unit. The caption steps more gently, so a large figure keeps a readable label.
Label position
labelPosition puts the caption above, below, or inline on the value's baseline. A unit starts flush against the value, so write the space into it when the design has one.
Deltas
The delta is a node, not a number. Compose it from metricDeltaVariants and whatever glyph the design uses; trailing copy in the slot is already muted caption text.
Monospace figure
Family and weight set on the root reach the value only — the label and delta reset to sans, regular and muted, so a mono figure never turns its caption mono.
Live value & leading node
value takes any node, so a NumberTicker rolls in place. leading sits on the value row, centred against it.
Props
Pesto UI · 117 documented components