Stat
import { Stat, StatTone } from "@arcadia/ui/charts";Requests
9,100 Today
up 12% from Sep 8Latency
111ms Today
down 14% from Sep 8Errors
39 Today
up 22% from Sep 8Sessions
1,388 Today
up 12% from Sep 8Stat
labelrequired- string
- What it counts: "Requests", "Spend in USD".
period- string
- What the value covers: "Today".
valuerequired- string
- In full: "12,480".
tone- "neutral" | "muted" | "accent" | "success" | "warning" | "danger"
- Default:
"neutral" - The figure's ink:
neutral,mutedfor a figure that matters less,accent,success,warningordangerfor one already read against a limit. unit- string
- A unit beside the value, in Caption: "%", "ms", "GB".
note- ReactNode
- One quiet line under the value and its change, in Caption: a limit, a count of boards.
delta- ReactNode
- A
Delta. 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). children- ReactNode
- A
Sparkline, whose reading writes the value and the period.
Rest props go to HTMLAttributes<HTMLDivElement>.
State machine
Requests
9,100 Today
up 12% from Sep 8