Object

CardDefaults

Default values used for Card

Source set: Android
public object CardDefaults

Default values used for Card

Properties

contentPadding

Source set: Android
public val contentPadding: PaddingValues

Default content padding used for a Card

This affects the outermost content padding applied around the content container. Note that there is additional padding applied around the content / text / icons inside a card, this only represents the outer padding for the entire content.

shape

Source set: Android
public val shape: Shape

The default shape of Card, which determines its corner radius.

color

Source set: Android
public val color: Color

The default background color of Card.

Functions

contentColor

Source set: Android
@Composable
    public fun contentColor(color: Color = CardDefaults.color): Color

Calculates the default content color for a Card based on the provided color.

Parameters

color the background color of the card

Return

the calculated content color

Content updated: