OutlinedCard

fun OutlinedCard(modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: CardColors = CardDefaults.outlinedCardColors(), border: BorderStroke = CardDefaults.outlinedCardBorder(), content: @Composable ColumnScope.() -> Unit)

Material Design outlined card.

Outlined cards contain content and actions that relate information about a subject. They have a visual boundary around the container. This can provide greater emphasis than the other types.

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

Outlined 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.outlinedCardColors.

border

the border to draw around the container of this card


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

Material Design outlined card.

Outlined cards contain content and actions that relate information about a subject. They have a visual boundary around the container. This can provide greater emphasis than the other types.

This OutlinedCard handles click events, calling its onClick lambda.

Outlined card image

Parameters

onClick

called when this card is clicked

modifier

the Modifier to be applied to this card

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.

colors

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

interactionSource

the MutableInteractionSource representing the stream of Interactions for this card. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this card in different states.