Command
Command

Jump to person

A people-search section that lists teammates with avatars to jump to.

People

Priya Anand

Design

Diego Klein

Engineering

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 PeopleJump(people: List<Pair<String, String>>) {
    Card(shape = RoundedCornerShape(16.dp)) {
        Column(Modifier.padding(vertical = 8.dp)) {
            Text("People", Modifier.padding(horizontal = 16.dp, vertical = 6.dp),
                style = MaterialTheme.typography.labelSmall,
                color = MaterialTheme.colorScheme.onSurfaceVariant)
            people.forEach { (name, role) ->
                ListItem(
                    leadingContent = {
                        Surface(shape = CircleShape, color = Color(0xFF6366F1),
                            modifier = Modifier.size(28.dp)) {}
                    },
                    headlineContent = { Text(name) },
                    supportingContent = { Text(role) },
                    modifier = Modifier.clickable {},
                )
            }
        }
    }
}