Module stat_tile
Expand description
StatTile: one number and what it measures, on the content ground.
A statistic is not a card: tiles sit on the ground and are separated by
space (StatGroup lays out a set and reflows 4 → 2 → 1 columns). A tile
reads top to bottom:
- the label (
Caption, secondary ink, sentence case), - the value in tabular figures (
Title, orDisplayfor the one hero number of a screen) with an optional unit (Caption), elided to the tile’s width, - an optional note: a neutral qualifier read with the value (“of 2 TB”,
“estimated”), in
Caption, - an optional change line: a
Trendarrow and its text, - an optional live
Sparklinefooter.
A Tone adds a ticker down the tile’s leading edge: what state the
measured thing is in (a failed backup, a healthy tunnel). A tile that
opens a detail view is pressable and can be the selected one.
StatTileFace paints the same geometry for immediate-mode callers.
Structs§
- Stat
Group - A set of stat tiles that reflows by width: all in one row when they fit, then half per row (a 2×2 for four), then one per row. Tiles are separated by space, never boxed.
- Stat
Tile - A retained stat tile. See the module docs.
- Stat
Tile Face - Immediate-mode stat tile.