Cards
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 GateTerminalCard() {
val blink = rememberInfiniteTransition(label = "b")
val a by blink.animateFloat(
0.2f, 1f, infiniteRepeatable(
tween(600), RepeatMode.Reverse
), label = "a"
)
ElevatedCard(
modifier = Modifier.fillMaxWidth().padding(16.dp)
) {
Row(
Modifier.fillMaxWidth().padding(20.dp),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically
) {
Column {
Text("Terminal 2",
style = MaterialTheme.typography.bodySmall)
Text("Gate B14",
style = MaterialTheme.typography.titleLarge)
}
Row(verticalAlignment = Alignment.CenterVertically) {
Canvas(Modifier.size(10.dp)) {
drawCircle(
Color(0xFF10B981).copy(alpha = a),
size.minDimension / 2
)
}
Spacer(Modifier.width(6.dp))
Text("Boarding",
style = MaterialTheme.typography.labelMedium)
}
}
}
}