Metric / StatTile
moleculesThe dashboard "one number" tile: micro-label, mono value with unit, a sub-line, a tinted icon chip, extra segments, link or button behaviour and an inline layout. StatTile is the same component.
KPI row
label, value, unit, sub and icon on each tile; tone tints the chip, tintValue the number too; AutoGrid wraps the row on a phone.
Requests
1.28 M
+4.2% vs yesterday
Error rate
0.31 %
target < 0.5%
p95 latency
412 ms
+38 ms since deploy
Spend today
$184
cap $250 · resets in 6h
Tones, sizes, surfaces and inline
tone tints the chip; size="sm" is the dense tile; surface="base" | "raised" | "sunken" matches sibling Cards; layout="inline" drops the Card.
neutral
42 %
accent
42 %
info
42 %
ok
42 %
warn
42 %
danger
42 %
Base
base
Raised
raised
Sunken
sunken
Tracks 1284
Size 42.7 GB
Quality FLAC 16-bit
Links, actions, segments and overflow
href makes the tile a link (external adds an arrow and new tab), onclick a button; segments trail the value with tooltips; long values wrap inside the tile.
Open alerts
7
click to view
Status page
99.98 %
Sessions
24
18
finished
4 running
2 failed
A label long enough to wrap on a narrow tile
1,284,311,042 bytes transferred since midnight
sub-lines wrap as well instead of pushing the tile wider
Empty
—
no data in range
StatTile alias
StatTile is the same component exported under a dashboard-friendly name; every prop is identical.
Active users
3,412
last 15 min
Signups
87 today
+12 vs yesterday
Churned
3 this week
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label required | string | — | |
value required | string | number | — | |
unit | string | — | |
sub | string | — | |
icon | IconName | — | |
tone | Tone | 'neutral' | |
tintValue | boolean | false | |
surface | 'base' | 'raised' | 'sunken' | 'base' | |
size | 'sm' | 'md' | 'md' | `sm` is a dense tile (smaller value, tighter padding). |
layout | 'card' | 'inline' | 'card' | `inline` drops the Card and renders a single stat row. |
href | string | — | Render the tile as a link / button with tap feedback. |
external | boolean | false | With `href`: new tab plus an arrow glyph after the label. |
onclick | (e: MouseEvent | KeyboardEvent) => void | — | |
segments | MetricSegment[] | — | Extra stats after the value, each with an optional Tooltip hint. |
class | string | '' | |
iconChildren | Snippet | — |