Cards
Cards

Plan Comparison

Two-column plan card comparing features with check and percent badges.

Basic
$9
Pro
$19

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 PlanComparisonCard() {
  Card(
    modifier = Modifier.width(280.dp),
    shape = RoundedCornerShape(18.dp)
  ) {
    Row(Modifier.padding(16.dp)) {
      listOf("Basic" to "$9", "Plus" to "$19").forEachIndexed { i, p ->
        Column(
          Modifier.weight(1f).padding(8.dp),
          horizontalAlignment = Alignment.CenterHorizontally
        ) {
          Text(p.first, style = MaterialTheme.typography.titleSmall)
          Text(p.second, style = MaterialTheme.typography.headlineSmall)
          Spacer(Modifier.height(8.dp))
          repeat(if (i == 0) 2 else 4) {
            Icon(Icons.Default.CheckCircle, null,
              modifier = Modifier.size(16.dp).padding(2.dp))
          }
        }
        if (i == 0) VerticalDivider()
      }
    }
  }
}