CardContainerDefaults

object CardContainerDefaults


Summary

Public functions

CardContainerColors
@Composable
contentColor(
    contentColor: Color,
    focusedContentColor: Color,
    pressedContentColor: Color
)

Creates CardContainerColors that represents the default content colors used in a CardContainer.

Public functions

contentColor

@Composable
fun contentColor(
    contentColor: Color = MaterialTheme.colorScheme.onSurface,
    focusedContentColor: Color = contentColor,
    pressedContentColor: Color = focusedContentColor
): CardContainerColors

Creates CardContainerColors that represents the default content colors used in a CardContainer.

Parameters
contentColor: Color = MaterialTheme.colorScheme.onSurface

the default content color of this CardContainer.

focusedContentColor: Color = contentColor

the content color of this CardContainer when focused.

pressedContentColor: Color = focusedContentColor

the content color of this CardContainer when pressed.