If you are using just an Icon
you can use the .size()
modifier.
Icon( imageVector = Icons.Outlined.Clear, contentDescription = "clear", modifier = Modifier.size(24.dp))
But if you are using an IconButton
try using .scale()
modifier. Because you have to manually adjust the contentPadding if you change the icon size.
IconButton( onClick = {}, modifier = Modifier.scale(0.75f)) { Icon( imageVector = Icons.Outlined.Clear, contentDescription = "clear" )}