Icons
Iconsanimated
Upload
A cloud-upload control whose arrow lifts up into the cloud and fades, looping the transfer.
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 UploadCloud(uploading: Boolean) {
val t = rememberInfiniteTransition(label = "up")
val y by t.animateFloat(3f, -3f, infiniteRepeatable(tween(900), RepeatMode.Reverse), label = "y")
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))
if (uploading) Icon(Icons.Filled.ArrowUpward, "Uploading", tint = MaterialTheme.colorScheme.surface,
modifier = Modifier.size(15.dp).offset(y = y.dp))
}
}