API reference

CardDefaults Object

Theme-derived color variants for the card composables, one per variant.

Signature

object CardDefaults

Properties

Outlined : CardColors
[Get]
OutlinedCard: an unfilled card that groups by outline alone. Its content is toned for the app background it sits on, so it reads correctly there and not on top of a filled card.
Signature
@get:Composable val Outlined: CardColors
Primary : CardColors
[Get]
PrimaryCard: a filled card, for the main grouping of content on a screen.
Signature
@get:Composable val Primary: CardColors
Secondary : CardColors
[Get]
SecondaryCard: a recessed card, for content that supports a primary grouping.
Signature
@get:Composable val Secondary: CardColors