```val icon = if (isSelected) Icons.Filled.Grade e...
# compose
n
Copy code
val icon = if (isSelected) Icons.Filled.Grade else Icons.Outlined.Grade
Icon(
    imageVector = icon,
    contentDescription = "$index Star",
    tint = Color(0xFFA58303),
    modifier = Modifier
        .clip(CircleShape)
        .selectable(
            selected = isSelected,
            onClick = {
                onRatingChanged(index.toFloat())
            }
        )
)
For Ripple Indication, is there a way to clip a composable to an ImageVector shape? Here I tried clipping to circle shape but it is not looking good
s
Have you considered using
IconButton
?