Skip to main content

CamoIcon

An icon that takes its size and color from the surrounding component unless size or tint is set. A null contentDescription makes it decorative: the right choice for icons passed into components, which carry the label themselves.

API​

public fun CamoIcon(
source: IconSource,
contentDescription: String?,
modifier: Modifier = Modifier,
size: Dp = Dp.Unspecified,
tint: Color = Color.Unspecified,
)
NameTypeDefault
sourceIconSourcerequired
contentDescriptionString?
modifierModifierModifier
sizeDpDp.Unspecified
tintColorColor.Unspecified
Design notes

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