Cards
Cardsanimated

Broadcast Live

Broadcast card with expanding concentric ring waves around a live mic.

On Air
Morning Show

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 BroadcastLive(title: String) {
  val t = rememberInfiniteTransition(label = "bc")
  val wave by t.animateFloat(
    initialValue = 0f,
    targetValue = 1f,
    animationSpec = infiniteRepeatable(
      tween(1800, easing = LinearEasing),
    ),
    label = "wave",
  )
  Card(
    shape = RoundedCornerShape(20.dp),
    modifier = Modifier.fillMaxWidth(),
  ) {
    Row(
      verticalAlignment = Alignment.CenterVertically,
      modifier = Modifier.padding(18.dp),
    ) {
      Box(contentAlignment = Alignment.Center) {
        Canvas(Modifier.size(64.dp)) {
          for (k in 0..2) {
            val p = (wave + k / 3f) % 1f
            drawCircle(
              color = Color(0xFFEF4444)
                .copy(alpha = 1f - p),
              radius = size.minDimension / 2 * p,
              style = Stroke(3f),
            )
          }
        }
        Icon(
          Icons.Default.Mic,
          contentDescription = null,
          tint = Color(0xFFEF4444),
        )
      }
      Spacer(Modifier.width(16.dp))
      Column {
        Text("On Air",
          color = Color(0xFFEF4444),
          style = MaterialTheme.typography.labelMedium)
        Text(title, style = MaterialTheme.typography.titleMedium)
      }
    }
  }
}