Jenga Stat Card
fun JengaStatCard(label: String, value: String, modifier: Modifier = Modifier, trendLabel: String? = null, trendTone: JengaBadgeTone = JengaBadgeTone.Neutral, onClick: () -> Unit? = null)(source)
Pattern (organism), a KPI / stat card: an eyebrow label, a large value, and an optional trend badge. Composed from JengaCard + JengaText + JengaBadge.
Parameters
label
the metric name (rendered as an uppercase eyebrow).
value
the metric value.
modifier
the Modifier for this card.
trend Label
optional trend pill text (e.g. "+12%").
trend Tone
the trend pill tone; see JengaBadgeTone.
on Click
optional click handler.
Samples
JengaStatCard(
label = "Checked in",
value = "1,284",
trendLabel = "+12%",
trendTone = JengaBadgeTone.Success,
)Content copied to clipboard