KPIcon

fun KPIcon(imageVector: ImageVector, size: IconSize, modifier: Modifier = Modifier, contentDescription: String? = imageVector.name, tint: Color = Color.Unspecified)

An Icon component that draws imageVector using tint, with a default value is Color.Unspecified. imageVector has no default size, the size should given by developer.

Parameters

imageVector

ImageVector to draw inside this Icon

size

size to be instance of IconSize. You can reach the predefined sizes from KPIconSize. If you need another size except from KPIconSize, you can modify with Modifier.size.

modifier

Modifier to be applied to the icon

contentDescription

text used by accessibility services to describe what this icon represents. The default value is set to ImageVector.name. If you want to change this value you can change the ImageVector.name in icon files.

tint

tint to be applied to imageVector. Color.Unspecified is applied as default value.