Icon

fun Icon(imageVector: ImageVector, modifier: Modifier = Modifier, onClick: () -> Unit, size: IconSize = KPIconSize.Small, tint: Color = Color.Unspecified)

Default icon used for TextField trailing container

Parameters

imageVector

This mandatory parameter defines the vector graphic resource that will be displayed as the icon. You'll need to provide an ImageVector object representing the desired icon.

modifier

The Modifier to be applied to SingleLineOutlinedTextField.

onClick

This parameter allows you to specify an action to be performed when the user clicks on the icon.

size

This parameter controls the size of the icon. It can be set to one of the predefined IconSize enum values, such as KPIconSize.Small or KPIconSize.Medium. Defaults to the value from KPIconSize.Small.