Class

TextStyle

Styling configuration for a Text.

TextStyleSample

@Composable
fun TextStyleSample() {
    Text(
        text = "Demo Text",
        style =
            TextStyle(
                color = Color.Red,
                fontSize = 16.sp,
                fontFamily = FontFamily.Monospace,
                fontWeight = FontWeight.W800,
                fontStyle = FontStyle.Italic,
                letterSpacing = 0.5.em,
                background = Color.LightGray,
                textDecoration = TextDecoration.Underline,
            ),
    )
}