Loaders
Loadersanimated

Wifi

Concentric arcs rising from a dot like a broadcasting signal.

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
val t = rememberInfiniteTransition(label = "wifi")
val color = MaterialTheme.colorScheme.primary
Canvas(Modifier.size(32.dp)) {
    val dot = Offset(size.width / 2f, size.height)
    drawCircle(color = color, radius = 3.dp.toPx(), center = dot)
    repeat(2) { i ->
        val alpha by t.animateFloat(
            initialValue = 0.2f,
            targetValue = 1f,
            animationSpec = infiniteRepeatable(
                tween(800, delayMillis = i * 250),
                RepeatMode.Reverse,
            ),
            label = "alpha",
        )
        val r = (i + 1) * 9.dp.toPx()
        drawArc(
            color = color.copy(alpha = alpha),
            startAngle = 200f,
            sweepAngle = 140f,
            useCenter = false,
            topLeft = Offset(dot.x - r, dot.y - r),
            size = Size(r * 2, r * 2),
            style = Stroke(width = 2.dp.toPx(), cap = StrokeCap.Round),
        )
    }
}