Skip to content
PreviewA change written once: its sign and the kit's arrow before the number, and what it is measured against after it.
up 12% from last week
Up
down 3.2% from yesterday
Down
no change from last month
No change

Delta

valuerequired
number
A share of what it is measured against (0.12 is +12%), or with format an amount.
baseline
string
What it is measured against, in words: "from last week".
polarity
"up" | "down"
The direction that is good, in the success hue; the other takes the danger hue. Unset, both are ink.
format
(n: number) => string
fmtCount for a count, fmtMs for a duration.
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

Rest props go to HTMLAttributes<HTMLSpanElement>.

State machine

PreviewUsage rose from last week.
up 12% from last week