Cards
Cards

Top Fan Badge

Fan recognition card crowning a top supporter with a gold accent badge.

VY
Vera Yu
Top fan this month
#1

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 TopFanCard() {
    Card(
        modifier = Modifier.width(280.dp),
        shape = RoundedCornerShape(18.dp)
    ) {
        Row(
            Modifier.padding(16.dp),
            verticalAlignment = Alignment.CenterVertically
        ) {
            Box {
                Box(
                    Modifier.size(48.dp).clip(CircleShape)
                        .background(
                            MaterialTheme.colorScheme.secondary
                        ),
                    contentAlignment = Alignment.Center
                ) { Text("VY") }
                Icon(
                    Icons.Default.Star,
                    contentDescription = null,
                    tint = Color(0xFFF59E0B),
                    modifier = Modifier
                        .align(Alignment.TopEnd)
                        .size(18.dp)
                )
            }
            Spacer(Modifier.width(12.dp))
            Column(Modifier.weight(1f)) {
                Text(
                    "Vera Yu",
                    style = MaterialTheme.typography.titleSmall
                )
                Text(
                    "Top fan this month",
                    style = MaterialTheme.typography.bodySmall,
                    color = MaterialTheme.colorScheme
                        .onSurfaceVariant
                )
            }
            AssistChip(
                onClick = {},
                label = { Text("#1") }
            )
        }
    }
}