elevatedCardColors

@Composable
fun elevatedCardColors(): CardColors

Creates a CardColors that represents the default container and content colors used in an ElevatedCard.


@Composable
fun elevatedCardColors(containerColor: Color = Color.Unspecified, contentColor: Color = contentColorFor(containerColor), disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(DisabledAlpha)): CardColors

Creates a CardColors that represents the default container and content colors used in an ElevatedCard.

Parameters

containerColor

the container color of this ElevatedCard when enabled.

contentColor

the content color of this ElevatedCard when enabled.

disabledContainerColor

the container color of this ElevatedCard when not enabled.

disabledContentColor

the content color of this ElevatedCard when not enabled.