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 RadioPulse(selected: Boolean, onSelect: () -> Unit) {
val p by animateFloatAsState(if (selected) 1f else 0f, spring(Spring.DampingRatioMediumBouncy, 350f), label = "r")
val color = MaterialTheme.colorScheme.primary
Canvas(Modifier.size(34.dp).clickable(onClick = onSelect)) {
drawCircle(color, style = Stroke(2.5.dp.toPx()), radius = size.minDimension / 2 - 4.dp.toPx())
drawCircle(color, radius = (size.minDimension / 2 - 8.dp.toPx()) * p)
}
}