OutlinedCard
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 sample:
Parameters
the Modifier to be applied to this card
CardColors that will be used to resolve the color(s) used for this card in different states. See CardDefaults.outlinedCardColors.
CardElevation used to resolve the elevation for this card in different states. This controls the size of the shadow below the card. Additionally, when the container color is ColorScheme.surface, this controls the amount of primary color applied as an overlay. See also: Surface.
the border to draw around the container of this card
Samples
androidx.compose.material3.samples.OutlinedCardSampleMaterial 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.
Clickable outlined card sample:
Parameters
called when this card is clicked
the Modifier to be applied to this card
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.
CardColors that will be used to resolve the color(s) used for this card in different states. See CardDefaults.outlinedCardColors.
CardElevation used to resolve the elevation for this card in different states. This controls the size of the shadow below the card. Additionally, when the container color is ColorScheme.surface, this controls the amount of primary color applied as an overlay. See also: Surface.
the border to draw around the container of this card
an optional hoisted MutableInteractionSource for observing and emitting Interactions for this card. You can use this to change the card's appearance or preview the card in different states. Note that if null
is provided, interactions will still happen internally.