Cards
<Card className="w-64 mx-auto">
<CardContent className="flex items-center justify-between p-4">
<div className="flex flex-col items-center gap-1">
<Check className="size-5 text-emerald-500" />
<span className="text-[10px] text-foreground">Placed</span>
</div>
<div className="flex flex-col items-center gap-1">
<Check className="size-5 text-emerald-500" />
<span className="text-[10px] text-foreground">Packed</span>
</div>
<div className="flex flex-col items-center gap-1">
<CheckCircle2 className="size-5 text-muted-foreground" />
<span className="text-[10px] text-muted-foreground">Shipped</span>
</div>
</CardContent>
</Card>
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 MultiStepProgress(step: Int) {
val labels = listOf("Placed", "Packed", "Shipped")
Card(
shape = RoundedCornerShape(14.dp),
modifier = Modifier.padding(12.dp)
) {
Row(
modifier = Modifier.padding(16.dp),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween
) {
labels.forEachIndexed { i, label ->
val active = i <= step
val tint by animateColorAsState(
if (active) Color(0xFF22C55E)
else MaterialTheme.colorScheme.outline,
label = "step"
)
Column(
horizontalAlignment = Alignment.CenterHorizontally
) {
Icon(
Icons.Rounded.CheckCircle,
contentDescription = null,
tint = tint
)
Text(label, style = MaterialTheme.typography.labelSmall)
}
}
}
}
}