Cards
Cardsanimated

Limited Edition Gem

Premium product card with a shimmering gem accent and limited tag.

Limited Edition
Aurora Watch
$420

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 LimitedEditionCard() {
  val shine = rememberInfiniteTransition(label = "s")
  val rot by shine.animateFloat(0f, 360f,
    infiniteRepeatable(tween(4000), RepeatMode.Restart), label = "r")
  OutlinedCard(
    modifier = Modifier.width(240.dp),
    shape = RoundedCornerShape(18.dp)
  ) {
    Column(Modifier.padding(16.dp)) {
      Row(verticalAlignment = Alignment.CenterVertically) {
        Icon(Icons.Default.Diamond, null,
          modifier = Modifier.size(18.dp).rotate(rot),
          tint = MaterialTheme.colorScheme.primary)
        Text("  Limited Edition",
          style = MaterialTheme.typography.labelLarge)
      }
      Spacer(Modifier.height(10.dp))
      Box(
        Modifier
          .fillMaxWidth()
          .height(120.dp)
          .clip(RoundedCornerShape(12.dp))
          .background(MaterialTheme.colorScheme.surfaceVariant)
      )
      Spacer(Modifier.height(10.dp))
      Text("Aurora Watch",
        style = MaterialTheme.typography.titleMedium)
      Text("$420", color = MaterialTheme.colorScheme.primary)
    }
  }
}