API reference

Icon Composable

Displays a vector icon using the surrounding semantic content color.
Use this overload for icons from Icons or another ImageVector collection.

Signature

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

Parameters

imageVector: ImageVector vector artwork to draw
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 vector; use Color.Companion.Unspecified to preserve source colors