Card

fun Card(modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: CardColors = CardDefaults.cardColors(), border: BorderStroke? = null, content: @Composable ColumnScope.() -> Unit)

Spark card.

Cards contain content and actions that relate information about a subject. Filled cards provide subtle separation from the background. This has less emphasis than elevated or outlined cards.

Card image

Parameters

modifier

the Modifier to be applied to this card When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

colors

CardColors that will be used to resolve the colors used for this card in different states. See CardDefaults.cardColors

border

the border to draw around the container of this card

content

content of the card


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

Spark card.

Cards contain content and actions that relate information about a subject. Filled cards provide subtle separation from the background. This has less emphasis than elevated or outlined cards.

Card image

Parameters

onClick

commentCountcalled when this card is clicked

modifier

commentCountthe Modifier to be applied to this card

enabled

commentCountcontrols 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.

colors

commentCountCardColors that will be used to resolve the colors used for this card in different states. See CardDefaults.cardColors

border

commentCountthe border to draw around the container of this card

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