Disclosures
Disclosuresanimated

What's included

A plan row that drops down a checked list of everything the tier includes.

What's in Pro
Unlimited projects
Priority support
Custom domains

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 IncludedList(plan: String, perks: List<String>) {
    var open by remember { mutableStateOf(true) }
    Column {
        Row(
            Modifier.fillMaxWidth().clickable { open = !open }.padding(vertical = 10.dp),
            verticalAlignment = Alignment.CenterVertically,
        ) {
            Text("What's included in $plan", Modifier.weight(1f),
                style = MaterialTheme.typography.titleSmall)
            Icon(Icons.Filled.ExpandMore, null,
                Modifier.rotate(if (open) 180f else 0f))
        }
        AnimatedVisibility(open) {
            Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
                perks.forEach { p ->
                    Row(verticalAlignment = Alignment.CenterVertically) {
                        Icon(Icons.Filled.CheckCircle, null,
                            Modifier.size(16.dp), tint = Color(0xFF16A34A))
                        Spacer(Modifier.width(8.dp))
                        Text(p, style = MaterialTheme.typography.bodyMedium)
                    }
                }
            }
        }
    }
}