Cards
Cardsanimated

Bill Due Reminder

Upcoming bill card with a pulsing clock badge urging an action before due.

Electric Bill
Due in 2 days
$86.40

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 BillReminderCard() {
  val t = rememberInfiniteTransition(label = "tick")
  val a by t.animateFloat(
    0.5f, 1f,
    infiniteRepeatable(tween(800), RepeatMode.Reverse),
    label = "a"
  )
  OutlinedCard(
    modifier = Modifier.fillMaxWidth().padding(16.dp),
    shape = RoundedCornerShape(20.dp)
  ) {
    Row(
      Modifier.padding(18.dp),
      verticalAlignment = Alignment.CenterVertically
    ) {
      Box(
        Modifier
          .size(44.dp)
          .graphicsLayer { alpha = a }
          .background(Color(0xFFEF4444).copy(alpha = 0.15f),
            CircleShape),
        contentAlignment = Alignment.Center
      ) {
        Icon(Icons.Filled.Clock, null, tint = Color(0xFFEF4444))
      }
      Spacer(Modifier.width(14.dp))
      Column(Modifier.weight(1f)) {
        Text("Electric Bill",
          fontWeight = FontWeight.SemiBold)
        Text("Due in 2 days",
          style = MaterialTheme.typography.bodySmall,
          color = Color(0xFFEF4444))
      }
      Text("$86.40", fontWeight = FontWeight.Bold)
    }
  }
}