Text

@Composable
fun Text(value: String, modifier: Modifier = Modifier, color: Color = Color.Unspecified, background: Color = Color.Unspecified, textStyle: TextStyle = TextStyle.Unspecified, underlineStyle: UnderlineStyle = UnderlineStyle.Unspecified, underlineColor: Color = Color.Unspecified, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, overflow: TextOverflow = TextOverflow.Clip)

Displays value.

Parameters

softWrap

Whether to break lines which are wider than the maximum width of the incoming constraints, after the last space which fits where possible. Lines which do not fit are clipped otherwise.

maxLines

The most lines to show. The rest are clipped, or end in an ellipsis with TextOverflow.Ellipsis.

overflow

How to show text which does not fit.


@Composable
fun Text(value: AnnotatedString, modifier: Modifier = Modifier, color: Color = Color.Unspecified, background: Color = Color.Unspecified, textStyle: TextStyle = TextStyle.Unspecified, underlineStyle: UnderlineStyle = UnderlineStyle.Unspecified, underlineColor: Color = Color.Unspecified, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, overflow: TextOverflow = TextOverflow.Clip)

Displays value with its styles.

Parameters

softWrap

Whether to break lines which are wider than the maximum width of the incoming constraints, after the last space which fits where possible. Lines which do not fit are clipped otherwise.

maxLines

The most lines to show. The rest are clipped, or end in an ellipsis with TextOverflow.Ellipsis.

overflow

How to show text which does not fit.