<h2 id="remotetext-text-modifier-color-fontsize-fontstyle-fontweight-fontfamily-textalign-overflow-maxlines-style-fontvariationsettings">RemoteText</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
@Composable
@RemoteComposable
public fun RemoteText(
    text: RemoteString,
    modifier: RemoteModifier = RemoteModifier,
    color: RemoteColor? = null,
    fontSize: RemoteTextUnit? = null,
    fontStyle: FontStyle? = null,
    fontWeight: FontWeight? = null,
    fontFamily: FontFamily? = null,
    textAlign: TextAlign? = LocalTextConfiguration.current.textAlign,
    overflow: TextOverflow = LocalTextConfiguration.current.overflow,
    maxLines: Int = LocalTextConfiguration.current.maxLines,
    style: RemoteTextStyle = LocalRemoteTextStyle.current,
    fontVariationSettings: FontVariation.Settings? = null,
)
```

High level element that displays text and provides semantics / accessibility information.

For ease of use, commonly used parameters from [androidx.compose.ui.text.TextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle) are also
present here. The order of precedence is as follows:
- If a parameter is explicitly set here (i.e, it is _not_ `null` or `androidx.compose.ui.unit.TextUnit.Unspecified`), then this parameter will always be used.
- If a parameter is _not_ set, (`null` or `androidx.compose.ui.unit.TextUnit.Unspecified`), then the corresponding value from [style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style) will be used instead.

#### Parameters

| | |
| --- | --- |
| text | The text to be displayed. |
| modifier | [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) to apply to this layout node. |
| color | [Color](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color) to apply to the text. |
| fontSize | The size of glyphs to use when painting the text. See [androidx.compose.ui.text.TextStyle.fontSize](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle). |
| fontStyle | The typeface variant to use when drawing the letters (e.g., italic). See [androidx.compose.ui.text.TextStyle.fontStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontStyle). |
| fontWeight | The typeface thickness to use when painting the text (e.g., `FontWeight.Bold`). |
| fontFamily | The font family to be used when rendering the text. See [androidx.compose.ui.text.TextStyle.fontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontFamily). |
| textAlign | The alignment of the text within the lines of the paragraph. See [androidx.compose.ui.text.TextStyle.textAlign](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextAlign). |
| overflow | How visual overflow should be handled. |
| maxLines | An optional maximum number of lines for the text to span. |
| style | Style configuration for the text such as color, font, line height etc. |
| fontVariationSettings | The font variation settings to be applied to the text. |