🌈 Create new beautiful Compose Gradients with our new wesite ->

CompactButton

CompactButton preview
Kotlin
@Composable
fun CompactButtonSample(modifier: Modifier = Modifier) {
    CompactButton(
        onClick = { /* Do something */ },
        icon = {
            Icon(
                painter = painterResource(R.drawable.ic_favorite_rounded),
                contentDescription = "Favorite icon",
                modifier = Modifier.size(CompactButtonDefaults.ExtraSmallIconSize),
            )
        },
        modifier = modifier,
        label = { Text("Compact Button", maxLines = 1, overflow = TextOverflow.Ellipsis) },
    )
}