# SurfaceDefaults

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/SurfaceDefaults.kt+class:androidx.tv.material3.SurfaceDefaults) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)


```
object SurfaceDefaults
```

<br />

*** ** * ** ***

Contains the default values used by a non-interactive `https://developer.android.com/reference/kotlin/androidx/tv/material3/Surface.composable#Surface(androidx.compose.ui.Modifier,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Shape,androidx.tv.material3.SurfaceColors,androidx.tv.material3.Border,androidx.tv.material3.Glow,kotlin.Function1)`

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/SurfaceColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/tv/material3/SurfaceDefaults#colors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)(containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Creates a `https://developer.android.com/reference/kotlin/androidx/tv/material3/SurfaceColors` that represents the default container \& content colors used by a non-interactive `https://developer.android.com/reference/kotlin/androidx/tv/material3/Surface.composable#Surface(androidx.compose.ui.Modifier,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Shape,androidx.tv.material3.SurfaceColors,androidx.tv.material3.Border,androidx.tv.material3.Glow,kotlin.Function1)`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/SurfaceDefaults#shape()` Represents the default shape used by a non-interactive `https://developer.android.com/reference/kotlin/androidx/tv/material3/Surface.composable#Surface(androidx.compose.ui.Modifier,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Shape,androidx.tv.material3.SurfaceColors,androidx.tv.material3.Border,androidx.tv.material3.Glow,kotlin.Function1)` |

## Public functions

### colors

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

```
@Composable
fun colors(
    containerColor: Color = MaterialTheme.colorScheme.surface,
    contentColor: Color = contentColorFor(containerColor)
): SurfaceColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/tv/material3/SurfaceColors` that represents the default container \& content colors used by a non-interactive `https://developer.android.com/reference/kotlin/androidx/tv/material3/Surface.composable#Surface(androidx.compose.ui.Modifier,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Shape,androidx.tv.material3.SurfaceColors,androidx.tv.material3.Border,androidx.tv.material3.Glow,kotlin.Function1)`.

| Parameters |
|---|---|
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.surface` | the container color of this Surface |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColorFor(containerColor)` | the content color of this Surface |

## Public properties

### shape

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

```
val shape: Shape
```

Represents the default shape used by a non-interactive `https://developer.android.com/reference/kotlin/androidx/tv/material3/Surface.composable#Surface(androidx.compose.ui.Modifier,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Shape,androidx.tv.material3.SurfaceColors,androidx.tv.material3.Border,androidx.tv.material3.Glow,kotlin.Function1)`