OutlinedChipWithIconAndLabel
@Composable
fun OutlinedChipWithIconAndLabel() {
OutlinedChip(
onClick = { /* Do something */ },
enabled = true,
// Primary label can have up to 3 lines of text
label = {
Text(
text = "Main label can span up to 3 lines",
maxLines = 3,
overflow = TextOverflow.Ellipsis,
)
},
icon = {
Icon(
painter = painterResource(id = R.drawable.ic_airplanemode_active_24px),
contentDescription = "airplane",
modifier =
Modifier.size(ChipDefaults.IconSize).wrapContentSize(align = Alignment.Center),
)
},
)
}