Jenga Stat Tile
fun JengaStatTile(label: String, value: String, modifier: Modifier = Modifier, unit: String? = null, tone: JengaStatTone = JengaStatTone.Neutral, icon: @Composable () -> Unit? = null, viz: @Composable ColumnScope.() -> Unit? = null, colors: JengaStatTileColors = JengaStatTileDefaults.colors(tone))(source)
A one-glance metric tile: an icon + label, a big value with an optional unit, and an optional micro-visualization (viz, e.g. a io.github.joelkanyi.jenga.component.progress.JengaDotStrip or a sub-label). Fills its layout slot (use it in an equal-weight row). Generic and token-driven; pick a tone to color it.
Parameters
label
the metric name (e.g. "Balance").
value
the metric value (e.g. "3", "≈640", "210").
modifier
the Modifier for this tile; give it width (e.g. Modifier.weight(1f)).
unit
an optional trailing unit (e.g. "/4 groups", "kcal", "KES").
tone
the semantic tone driving the fill and text colors.
icon
an optional leading icon (inherits the label color).
viz
optional micro-visualization rendered under the value.
colors
the color set; defaults to JengaStatTileDefaults.colors for tone.