Icons
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 SignalBars() {
val t = rememberInfiniteTransition(label = "sig")
val color = MaterialTheme.colorScheme.primary
Row(Modifier.size(40.dp).padding(8.dp), verticalAlignment = Alignment.Bottom, horizontalArrangement = Arrangement.spacedBy(3.dp)) {
repeat(4) { i ->
val h by t.animateFloat(0.2f, 1f, infiniteRepeatable(tween(700, delayMillis = i * 160, easing = EaseInOut), RepeatMode.Reverse), label = "b$i")
Box(Modifier.width(4.dp).fillMaxHeight((0.3f + i * 0.23f) * h).background(color, RoundedCornerShape(2.dp)))
}
}
}