Cards
Cardsmedia

Image top

4.9

Santorini

Greece

$1,200

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
CaveCard {
    Box(
        Modifier
            .fillMaxWidth()
            .height(128.dp)
            .background(Brush.linearGradient(listOf(Color(0xFF2DD4BF), Color(0xFF059669)))),
    ) {
        Text(
            "Santorini",
            color = Color.White,
            style = typography.titleMedium,
            modifier = Modifier.align(Alignment.BottomStart).padding(12.dp),
        )
    }
    Row(
        Modifier.fillMaxWidth(),
        horizontalArrangement = Arrangement.SpaceBetween,
        verticalAlignment = Alignment.CenterVertically,
    ) {
        Row(verticalAlignment = Alignment.CenterVertically) {
            Icon(Icons.Filled.Place, null)
            Text("Greece", color = onSurfaceVariant)
        }
        Text("$1,200", style = typography.titleSmall)
    }
}