Package-level declarations

JengaStatTile: a figure with a label and tone.

Types

Link copied to clipboard
class JengaStatTileColors(val fill: Brush, val label: Color, val value: Color, val unit: Color)

Resolved colors for a JengaStatTile. Override via JengaStatTileDefaults.colors.

Link copied to clipboard

Defaults and token mappings for JengaStatTile.

Link copied to clipboard

The semantic tone of a JengaStatTile; drives its fill and text colors from theme tokens (never hardcoded), so a tile looks native to whatever app themes Jenga.

Functions

Link copied to clipboard
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))

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.