Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Created April 15, 2025 11:41
Show Gist options
  • Save ifucolo/080503b91263ded42fc8d15f4f9d4127 to your computer and use it in GitHub Desktop.
Save ifucolo/080503b91263ded42fc8d15f4f9d4127 to your computer and use it in GitHub Desktop.
@Composable
fun TagText(
modifier: Modifier = Modifier,
tag: String,
contentColor: Color = MaterialTheme.colorScheme.onSurface,
backgroundColor: Color = MaterialTheme.colorScheme.surface,
) {
BodyMediumText(
text = tag,
color = contentColor.copy(alpha = 0.8f),
modifier = modifier
.padding(
top = 8.dp
)
.background(
color = backgroundColor,
shape = SanctusAppShapes.large
)
.border(
width = 1.dp,
color = contentColor.copy(alpha = 0.5f),
shape = SanctusAppShapes.large
)
.padding(
vertical = 4.dp,
horizontal = 6.dp
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment