---
title: "surface"
type: "property"
lastmod: "2026-08-27"
---
## API Reference

> Source set: Common

```kotlin
val surface =
        @Composable {
            Surface(
                shape = animatedShape,
                color = colors.containerColor,
                contentColor = contentColorFor(colors.containerColor),
                tonalElevation = tonalElevation,
                shadowElevation = shadowElevation,
                content = {},
            )
        }
```
