Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Created July 28, 2021 07:45
Show Gist options
  • Save zsoltk/125cb0ca7b52f18bf654e6ad9523be05 to your computer and use it in GitHub Desktop.
Save zsoltk/125cb0ca7b52f18bf654e6ad9523be05 to your computer and use it in GitHub Desktop.
@Composable
private fun Pill(content: @Composable () -> Unit) {
Box(
modifier = Modifier
.background(
color = someColour,
shape = RoundedCornerShape(6.dp)
)
) {
content()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment