ElevatedCard

fun ElevatedCard(modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: CardColors = CardDefaults.elevatedCardColors(), content: @Composable ColumnScope.() -> Unit)

Spark Elevated Card.

Elevated cards contain content and actions that relate information about a subject. They have a drop shadow, providing more separation from the background than filled cards, but less than outlined cards.

This ElevatedCard does not handle input events - see the other ElevatedCard overloads if you want a clickable or selectable ElevatedCard.

Elevated card image

Parameters

modifier

the Modifier to be applied to this card

colors

CardColors that will be used to resolve the color(s) used for this card in different states. See CardDefaults.elevatedCardColors.

content

content of the card


fun ElevatedCard(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, shape: Shape = SparkTheme.shapes.medium, colors: CardColors = CardDefaults.elevatedCardColors(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable ColumnScope.() -> Unit)

Spark Elevated Card.

Elevated cards contain content and actions that relate information about a subject. They have a drop shadow, providing more separation from the background than filled cards, but less than outlined cards.

This ElevatedCard does not handle input events - see the other ElevatedCard overloads if you want a clickable or selectable ElevatedCard.

Elevated card image

Parameters

modifier

the Modifier to be applied to this card

onClick

called when this card is clicked

colors

CardColors that will be used to resolve the color(s) used for this card in different states. See CardDefaults.elevatedCardColors.

enabled

controls the enabled state of this card. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

interactionSource

commentCountthe MutableInteractionSource representing the stream of Interactions for this card. You can create and pass in your own remembered instance to observe

content

commentCountcontent of the card