Icon

@Composable
fun Icon(resource: String, contentDescription: String?, iconClass: Class<*>, colorFilter: ColorFilter?, modifier: Modifier = Modifier)
@Composable
fun Icon(resource: String, contentDescription: String?, iconClass: Class<*>, modifier: Modifier = Modifier, tint: Color = Color.Unspecified)


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

Icon component that draws imageVector using tint, defaulting to Color.Unspecified.

Parameters

imageVector

ImageVector to draw inside this Icon

contentDescription

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take.

modifier

optional Modifier for this Icon

tint

tint to be applied to imageVector. If Color.Unspecified is provided, then no tint is applied


@Composable
fun Icon(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = Modifier, tint: Color = Color.Unspecified)

Icon component that draws bitmap using tint, defaulting to Color.Unspecified.

Parameters

bitmap

ImageBitmap to draw inside this Icon

contentDescription

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take.

modifier

optional Modifier for this Icon

tint

tint to be applied to bitmap. If Color.Unspecified is provided, then no tint is applied


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

Icon component that draws a painter using tint, defaulting to Color.Unspecified

Parameters

painter

Painter to draw inside this Icon

contentDescription

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take.

modifier

optional Modifier for this Icon

tint

tint to be applied to painter. If Color.Unspecified is provided, then no tint is applied


@Composable
fun Icon(painter: Painter, contentDescription: String?, colorFilter: ColorFilter?, modifier: Modifier = Modifier)

Icon component that draws a painter using a colorFilter

Parameters

painter

Painter to draw inside this Icon

contentDescription

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take.

modifier

optional Modifier for this Icon

colorFilter

color filter to be applied to painter