Feedback
Get started2 of 3
Verify email
Add a photo
Invite a teammate
Installation
caveui components are copy-paste Jetpack Compose built entirely on Material 3 — there's no caveui dependency to add. Make sure Material 3 is on your classpath (it ships with the Compose BOM), then copy the Usage snippet below into your project.
kotlin
// build.gradle.kts (module)
dependencies {
implementation(platform("androidx.compose:compose-bom:2025.06.00"))
implementation("androidx.compose.material3:material3")
}Usage
kotlin
@Composable
fun ChecklistProgress(steps: List<Pair<String, Boolean>>) {
val done = steps.count { it.second }
val pct = done.toFloat() / steps.size
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
Row(Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.SpaceBetween) {
Text("Get started", style = MaterialTheme.typography.titleSmall)
Text("$done of ${steps.size}",
style = MaterialTheme.typography.labelMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant)
}
LinearProgressIndicator(progress = { pct }, modifier = Modifier.fillMaxWidth())
steps.forEach { (label, complete) ->
Row(verticalAlignment = Alignment.CenterVertically) {
Icon(
if (complete) Icons.Filled.CheckCircle
else Icons.Outlined.RadioButtonUnchecked,
null, Modifier.size(18.dp),
tint = if (complete) Color(0xFF16A34A)
else MaterialTheme.colorScheme.outline,
)
Spacer(Modifier.width(8.dp))
Text(label, style = MaterialTheme.typography.bodyMedium)
}
}
}
}