Icons
Iconsanimated

Droplet

A water drop that swells and releases a ripple — for hydration, liquids and freshness.

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 Droplet() {
    val t = rememberInfiniteTransition(label = "drop")
    val ripple by t.animateFloat(0f, 1f, infiniteRepeatable(tween(1500), RepeatMode.Restart), label = "r")
    val color = Color(0xFF3B82F6)
    Box(Modifier.size(40.dp), contentAlignment = Alignment.Center) {
        Canvas(Modifier.matchParentSize()) {
            drawCircle(color.copy(alpha = (1f - ripple) * 0.5f), size.width * 0.3f * ripple,
                Offset(center.x, size.height * 0.8f), style = Stroke(2.dp.toPx()))
        }
        Icon(Icons.Filled.WaterDrop, "Water", tint = color, modifier = Modifier.size(26.dp).offset(y = (-3).dp))
    }
}