Icons
Iconsanimated

Rain

A cloud with raindrops falling in staggered streaks beneath it for weather and sync states.

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 RainCloud() {
    val t = rememberInfiniteTransition(label = "rain")
    val color = MaterialTheme.colorScheme.primary
    Box(Modifier.size(40.dp)) {
        Icon(Icons.Filled.Cloud, null, tint = color, modifier = Modifier.size(28.dp).align(Alignment.TopCenter))
        Canvas(Modifier.matchParentSize()) {
            repeat(3) { i ->
                val phase by t.animateFloat(0f, 1f, infiniteRepeatable(tween(800, delayMillis = i * 160)), label = "d$i")
                val x = size.width * (0.3f + i * 0.2f)
                drawLine(color.copy(alpha = 1f - phase), Offset(x, size.height * (0.55f + phase * 0.3f)),
                    Offset(x, size.height * (0.62f + phase * 0.3f)), 2.dp.toPx(), StrokeCap.Round)
            }
        }
    }
}