Icons
Iconsanimated

Cloud sync

A cloud with sync arrows spinning inside it while data is reconciled with the server.

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 CloudSync() {
    val angle by rememberInfiniteTransition(label = "cs").animateFloat(
        0f, 360f, infiniteRepeatable(tween(1300, easing = FastOutSlowInEasing)), label = "a",
    )
    Box(Modifier.size(40.dp), contentAlignment = Alignment.Center) {
        Icon(Icons.Filled.Cloud, null, tint = MaterialTheme.colorScheme.primary.copy(alpha = 0.9f), modifier = Modifier.size(34.dp))
        Icon(Icons.Filled.Sync, "Syncing", tint = MaterialTheme.colorScheme.surface,
            modifier = Modifier.size(15.dp).offset(y = 2.dp).graphicsLayer { rotationZ = angle })
    }
}