Icons
Iconsanimated

Chat

Two message bubbles that pop in one after the other, suggesting a lively conversation.

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 ChatBubbles() {
    val t = rememberInfiniteTransition(label = "chat")
    val color = MaterialTheme.colorScheme.primary
    Box(Modifier.size(40.dp)) {
        val a by t.animateFloat(0f, 1f, infiniteRepeatable(tween(1400, easing = EaseOutBack), RepeatMode.Reverse), label = "a")
        val b by t.animateFloat(0f, 1f, infiniteRepeatable(tween(1400, delayMillis = 200, easing = EaseOutBack), RepeatMode.Reverse), label = "b")
        Icon(Icons.Filled.ChatBubble, null, tint = color, modifier = Modifier.size(20.dp).align(Alignment.TopStart).scale(a))
        Icon(Icons.Filled.ChatBubble, null, tint = color.copy(alpha = 0.6f), modifier = Modifier.size(16.dp).align(Alignment.BottomEnd).scale(b))
    }
}