When to use it
Use dividers to join the stats into one frame.
Native example
Use dividers to join the stats into one frame.
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun StorePerformance() {
LumenStatGroup(label = "Store performance") {
LumenStat(
label = "Revenue",
value = "$48.2K",
trend = LumenStatTrend("12%", LumenStatTrendDirection.Up, LumenMetricTone.Success)
)
LumenStat(label = "Orders", value = "1,204")
LumenStat(label = "Refund rate", value = "1.4%")
}
}Reference
The primary shared and platform-specific options exposed by LumenStatGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / dividers / minimumWidth | group name / joined frame / column width | required / false / 160 | Use dividers to join the stats into one frame. |
Native behavior
Use dividers to join the stats into one frame.
Named group; each stat keeps its own summary.
Shared component