Skip to content

Instantly share code, notes, and snippets.

@aritra-tech
Last active May 9, 2024 15:03
Show Gist options
  • Save aritra-tech/f1b43432fcfdb15f029bca2b91b16b15 to your computer and use it in GitHub Desktop.
Save aritra-tech/f1b43432fcfdb15f029bca2b91b16b15 to your computer and use it in GitHub Desktop.
@Composable
fun ChipExample() {
Chip(
onClick = { /*TODO*/ },
label = {
Text(text = "Tools")
},
icon = {
Icon(
painter = painterResource(id = R.drawable.tools),
contentDescription = null,
modifier = Modifier
.size(ChipDefaults.LargeIconSize)
.wrapContentSize(align = Alignment.Center)
)
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment