CamoSurface
A neutral container: one of the six surface levels, clipped to a shape, at a semantic depth. It sets
onSurface as the content color for what's inside. Not interactive, and touches pass through it.
API
- Kotlin
- Dart
public fun CamoSurface(
modifier: Modifier = Modifier,
level: SurfaceLevel = SurfaceLevel.Surface,
shape: ShapeRole = ShapeRole.None,
elevation: ElevationLevel = ElevationLevel.Level0,
border: Boolean = false,
content: @Composable () -> Unit,
)
| Name | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
level | SurfaceLevel | SurfaceLevel.Surface |
shape | ShapeRole | ShapeRole.None |
elevation | ElevationLevel | ElevationLevel.Level0 |
border | Boolean | false |
content | @Composable () -> Unit | required |
Design notes
Why CamoSurface works this way, its states and its edge cases: contributor docs.