API reference

Icon Composable

Displays painter-backed artwork using the surrounding semantic content color.
Use this overload for bitmap, resource, or custom-drawn painters.

Signature

@Composable
fun Icon(
    painter: Painter,
    contentDescription: String?,
    modifier: Modifier = Modifier,
    tint: Color = LocalContentColor.current,
)

Parameters

painter: Painter painter that supplies the artwork
contentDescription: String? accessibility label, or null when adjacent text already describes the image
modifier: Modifier modifier applied to the rendered image
tint: Color color applied to the painter; use Color.Companion.Unspecified to preserve source colors