Icons
Iconsanimated
Bluetooth
A Bluetooth glyph emitting pulse rings while it searches for and pairs with a device.
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 BluetoothPairing(pairing: Boolean) {
val pulse by rememberInfiniteTransition(label = "bt").animateFloat(
0f, 1f, infiniteRepeatable(tween(1400), RepeatMode.Restart), label = "p")
val color = Color(0xFF3B82F6)
Box(Modifier.size(40.dp), contentAlignment = Alignment.Center) {
if (pairing) Canvas(Modifier.matchParentSize()) {
drawCircle(color.copy(alpha = (1f - pulse) * 0.5f), size.minDimension / 2 * pulse, style = Stroke(2.dp.toPx()))
}
Icon(Icons.Filled.Bluetooth, "Bluetooth", tint = color, modifier = Modifier.size(26.dp))
}
}