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
- Kotlin
- Dart
public fun CamoIcon(
source: IconSource,
contentDescription: String?,
modifier: Modifier = Modifier,
size: Dp = Dp.Unspecified,
tint: Color = Color.Unspecified,
)
| Name | Type | Default |
|---|---|---|
source | IconSource | required |
contentDescription | String? | |
modifier | Modifier | Modifier |
size | Dp | Dp.Unspecified |
tint | Color | Color.Unspecified |
Design notes
Why CamoIcon works this way, its states and its edge cases: contributor docs.