Compose Component

CompactCard

CompactCard is an opinionated TV Material card that offers a 4 slot layout to show information about a subject.

CompactCard social preview

CompactCardSample

@Sampled
@Composable
fun CompactCardSample() {
    CompactCard(
        modifier = Modifier.size(150.dp, 120.dp),
        image = { Box(modifier = Modifier.fillMaxWidth().height(80.dp).background(Color.Blue)) },
        title = { Text(text = "Compact Card", modifier = Modifier.padding(8.dp)) },
        onClick = {},
    )
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: