Skip to content
PreviewA dashboard's head: four tiles, each today against the same day four weeks before. Point at a sparkline and its tile reads the day.
Requests
9,100 Today
up 12% from Sep 8
Latency
111ms Today
down 14% from Sep 8
Errors
39 Today
up 22% from Sep 8
Sessions
1,388 Today
up 12% from Sep 8

Stat

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, muted for a figure that matters less, accent, success, warning or danger for 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: 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).
children
ReactNode
A Sparkline, whose reading writes the value and the period.

Rest props go to HTMLAttributes<HTMLDivElement>.

State machine

PreviewSee today's requests and their change.
Requests
9,100 Today
up 12% from Sep 8