Cards
Cardsanimated

Price Rating Stars

Product summary with animated star rating fill and bold price.

Aero Runner
4.0
$129

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 PriceRatingCard() {
  val filled = 4
  Card(
    modifier = Modifier.width(240.dp),
    shape = RoundedCornerShape(18.dp)
  ) {
    Column(Modifier.padding(16.dp)) {
      Box(
        Modifier
          .fillMaxWidth()
          .height(110.dp)
          .clip(RoundedCornerShape(12.dp))
          .background(MaterialTheme.colorScheme.surfaceVariant)
      )
      Spacer(Modifier.height(10.dp))
      Text("Leather Wallet", style = MaterialTheme.typography.titleMedium)
      Row {
        repeat(5) { i ->
          val tint = if (i < filled)
            MaterialTheme.colorScheme.primary
          else MaterialTheme.colorScheme.outline
          Icon(Icons.Default.Star, null, tint = tint,
            modifier = Modifier.size(16.dp))
        }
      }
      Spacer(Modifier.height(8.dp))
      Text("$59.00", style = MaterialTheme.typography.headlineSmall)
    }
  }
}