# CardContainerDefaults

Artifact: [androidx.tv:tv-material](https://developer.android.com/jetpack/androidx/releases/tv) [View Source](https://cs.android.com/search?q=file:androidx/tv/material3/CardContainer.kt+class:androidx.tv.material3.CardContainerDefaults) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)


```
object CardContainerDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/CardContainerColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/tv/material3/CardContainerDefaults#contentColor(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, pressedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Creates `https://developer.android.com/reference/kotlin/androidx/tv/material3/CardContainerColors` that represents the default content colors used in a CardContainer. |

## Public functions

### contentColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tv#1.1.0)

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

Creates `https://developer.android.com/reference/kotlin/androidx/tv/material3/CardContainerColors` that represents the default content colors used in a CardContainer.

| Parameters |
|---|---|
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.onSurface` | the default content color of this CardContainer. |
| `focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColor` | the content color of this CardContainer when focused. |
| `pressedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = focusedContentColor` | the content color of this CardContainer when pressed. |