Cards contain content and actions about a single subject.

Card preview
RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

CardSample

@Composable
fun CardSample() {
    Card { Text("Card Content") }
}

ClickableCardSample

@OptIn(ExperimentalMaterialApi::class)
@Composable
fun ClickableCardSample() {
    var count by remember { mutableStateOf(0) }
    Card(onClick = { count++ }) { Text("Clickable card content with count: $count") }
}