Skip to main content

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​

public fun CamoSurface(
modifier: Modifier = Modifier,
level: SurfaceLevel = SurfaceLevel.Surface,
shape: ShapeRole = ShapeRole.None,
elevation: ElevationLevel = ElevationLevel.Level0,
border: Boolean = false,
content: @Composable () -> Unit,
)
NameTypeDefault
modifierModifierModifier
levelSurfaceLevelSurfaceLevel.Surface
shapeShapeRoleShapeRole.None
elevationElevationLevelElevationLevel.Level0
borderBooleanfalse
content@Composable () -> Unitrequired
Design notes

Why CamoSurface works this way, its states and its edge cases: contributor docs.