Delta
A change, written once: its sign and arrow, the number, its baseline, and a status hue only where one direction is good.
import { Delta } from "@arcadia/ui"up 12% from last week
Up
down 3.2% from yesterday
Down
no change from last month
No change
TSX
Examples
Polarity
Polarity
Up
Down
No change
None
up 12%
down 3.2%
no change
upup 12%
down 3.2%
no change
downup 12%
down 3.2%
no change
Delta
valuerequired- number
- A share of what it is measured against (
0.12is +12%), or withformatan 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
fmtCountfor a count,fmtMsfor a duration.rootStyle- RootStyle
- A component's typed override prop:
Layoutand 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>.