androidx.compose.material3
ElevatedCard
Composable function
One of the card types. It works like Card. Only the parameters that differ are described here.
A card with a shadow, so it looks raised above the page.

ElevatedCard(Modifier.size(240.dp, 100.dp)) {
Text("Elevated card", Modifier.padding(16.dp))
}
Basic
Not clickable. Use it to group content.
@Composable
fun ElevatedCard(
modifier: Modifier = Modifier,
shape: Shape = CardDefaults.elevatedShape,
colors: CardColors = CardDefaults.elevatedCardColors(),
elevation: CardElevation = CardDefaults.elevatedCardElevation(),
content: @Composable ColumnScope.() -> Unit,
)
Defaults that differ from Card:
shape=CardDefaults.elevatedShapecolors=CardDefaults.elevatedCardColors()elevation=CardDefaults.elevatedCardElevation()
Same as in Card: modifier, shape, colors, elevation, content.
Clickable
Takes onClick. The whole card reacts to clicks.
@Composable
fun ElevatedCard(
onClick: () -> Unit,
modifier: Modifier = Modifier,
enabled: Boolean = true,
shape: Shape = CardDefaults.elevatedShape,
colors: CardColors = CardDefaults.elevatedCardColors(),
elevation: CardElevation = CardDefaults.elevatedCardElevation(),
interactionSource: MutableInteractionSource? = null,
content: @Composable ColumnScope.() -> Unit,
)
Defaults that differ from Card:
shape=CardDefaults.elevatedShapecolors=CardDefaults.elevatedCardColors()elevation=CardDefaults.elevatedCardElevation()
Same as in Card: onClick, modifier, enabled, shape, colors, elevation, interactionSource, content.
Card types
CardElevatedCardOutlinedCard
See also
CardDefaults: default values and helper functions forElevatedCard.