Cards
Cardsanimated

Recent Payees

Quick-pay card with recent payee chips that scale in as a staggered row.

Quick Pay
MMom
RRent
GGym
SSam

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 RecentPayeesCard() {
  val payees = listOf("Mom", "Rent", "Gym", "Sam")
  Card(
    modifier = Modifier.fillMaxWidth().padding(16.dp),
    shape = RoundedCornerShape(20.dp)
  ) {
    Column(Modifier.padding(18.dp)) {
      Row(verticalAlignment = Alignment.CenterVertically) {
        Icon(Icons.Filled.Send, null,
          modifier = Modifier.size(18.dp))
        Spacer(Modifier.width(8.dp))
        Text("Quick Pay",
          style = MaterialTheme.typography.titleSmall,
          fontWeight = FontWeight.SemiBold)
      }
      Spacer(Modifier.height(14.dp))
      Row(horizontalArrangement = Arrangement.spacedBy(10.dp)) {
        payees.forEachIndexed { i, name ->
          val s = remember { Animatable(0f) }
          LaunchedEffect(Unit) {
            delay(i * 90L)
            s.animateTo(1f, spring(dampingRatio = 0.5f))
          }
          Column(
            horizontalAlignment = Alignment.CenterHorizontally,
            modifier = Modifier.graphicsLayer {
              scaleX = s.value; scaleY = s.value
            }
          ) {
            Box(
              Modifier.size(44.dp).background(
                MaterialTheme.colorScheme.primaryContainer,
                CircleShape
              ), contentAlignment = Alignment.Center
            ) { Text(name.take(1)) }
            Spacer(Modifier.height(4.dp))
            Text(name,
              style = MaterialTheme.typography.labelSmall)
          }
        }
      }
    }
  }
}