Composable Component

OutlinedCompactButton

Wear Material OutlinedCompactButton that offers a single slot to take any content (text, icon or image).

OutlinedCompactButtonWithIcon

@Composable
fun OutlinedCompactButtonWithIcon() {
    OutlinedCompactButton(onClick = { /* Do something */ }, enabled = true) {
        Icon(
            painter = painterResource(id = R.drawable.ic_airplanemode_active_24px),
            contentDescription = "airplane",
            modifier =
                Modifier.size(ButtonDefaults.SmallIconSize)
                    .wrapContentSize(align = Alignment.Center),
        )
    }
}