Cards
Cards

Interest Tag Chips

Profile card listing interest hashtags as wrap-flowing selectable filter chips.

Interests
designkotlinmotionuxai

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
@OptIn(ExperimentalLayoutApi::class)
@Composable
fun TagChipsCard() {
    val tags = listOf(
        "design", "kotlin", "motion", "ux", "ai"
    )
    Card(
        modifier = Modifier.width(280.dp),
        shape = RoundedCornerShape(18.dp)
    ) {
        Column(Modifier.padding(16.dp)) {
            Text(
                "Interests",
                style = MaterialTheme.typography.titleSmall
            )
            Spacer(Modifier.height(10.dp))
            FlowRow(
                horizontalArrangement =
                    Arrangement.spacedBy(8.dp),
                verticalArrangement =
                    Arrangement.spacedBy(8.dp)
            ) {
                tags.forEach { tag ->
                    SuggestionChip(
                        onClick = {},
                        label = { Text("#$tag") }
                    )
                }
            }
        }
    }
}