Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Created April 15, 2025 09:00
Show Gist options
  • Save ifucolo/9487cd4906d6b8534bafc955b5a5c2b8 to your computer and use it in GitHub Desktop.
Save ifucolo/9487cd4906d6b8534bafc955b5a5c2b8 to your computer and use it in GitHub Desktop.
@Composable
fun GenericText(
text: String,
modifier: Modifier = Modifier,
style: TextStyle = SanctusAppTypography.bodyMedium,
color: Color = Color.Unspecified,
fontSize: TextUnit = TextUnit.Unspecified,
fontWeight: FontWeight? = null,
textAlign: TextAlign? = null,
textDecoration: TextDecoration? = null,
maxLines: Int = Int.MAX_VALUE,
overflow: TextOverflow = TextOverflow.Clip
) {
Text(
text = text,
modifier = modifier,
style = style,
color = color,
fontSize = fontSize,
fontWeight = fontWeight,
textAlign = textAlign,
textDecoration = textDecoration,
maxLines = maxLines,
overflow = overflow
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment