Icon
A foundational component used to display icons.
For interactive preview & code examples, visit Icon Documentation.
Basic Example
Icon(
painter = painterResource("icon.xml"),
contentDescription = "Settings",
tint = Color.Black
)Parameters
The painter to draw the icon.
The content description for accessibility.
Modifier to be applied to the icon.
The tint color to be applied to the icon.
A foundational component used to display icons.
For interactive preview & code examples, visit Icon Documentation.
Basic Example
Icon(
painter = painterResource("icon.xml"),
contentDescription = "Settings",
tint = Color.Black
)Parameters
The image bitmap to draw the icon.
The content description for accessibility.
Modifier to be applied to the icon.
The tint color to be applied to the icon.
A foundational component used to display icons.
For interactive preview & code examples, visit Icon Documentation.
Basic Example
Icon(
painter = painterResource("icon.xml"),
contentDescription = "Settings",
tint = Color.Black
)Parameters
The image vector to draw the icon.
The content description for accessibility.
Modifier to be applied to the icon.
The tint color to be applied to the icon.