# RemoteBasicText

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable https://developer.android.com/reference/kotlin/androidx/compose/remote/foundation/text/RemoteBasicText.composable#RemoteBasicText(androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteColor,androidx.compose.remote.creation.compose.state.RemoteTextUnit,androidx.compose.ui.text.font.FontStyle,androidx.compose.ui.text.font.FontWeight,androidx.compose.remote.creation.compose.text.RemoteFontFamily,androidx.compose.ui.text.style.TextAlign,androidx.compose.ui.text.style.TextOverflow,kotlin.Int,androidx.compose.ui.text.font.FontVariation.Settings,androidx.compose.remote.creation.compose.text.RemoteTextStyle)( text: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteString, modifier: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/modifier/RemoteModifier, color: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteColor?, fontSize: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteTextUnit?, fontStyle: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontStyle?, fontWeight: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight?, fontFamily: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/text/RemoteFontFamily?, textAlign: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextAlign?, overflow: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextOverflow, maxLines: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fontVariationSettings: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontVariation.Settings?, style: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/text/RemoteTextStyle )` Remote composable that displays basic text. |

## Functions

### RemoteBasicText

Artifact: [androidx.compose.remote.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-remote-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/remote/foundation/text/RemoteBasicText.kt+function:RemoteBasicText) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/compose-remote-foundation#1.0.0-alpha06)

```
@Composable
@RemoteComposable
fun RemoteBasicText(
    text: RemoteString,
    modifier: RemoteModifier = RemoteModifier,
    color: RemoteColor? = null,
    fontSize: RemoteTextUnit? = null,
    fontStyle: FontStyle? = null,
    fontWeight: FontWeight? = null,
    fontFamily: RemoteFontFamily? = null,
    textAlign: TextAlign? = null,
    overflow: TextOverflow = TextOverflow.Clip,
    maxLines: Int = Int.MAX_VALUE,
    fontVariationSettings: FontVariation.Settings? = null,
    style: RemoteTextStyle = RemoteTextStyle.Default
): Unit
```

Remote composable that displays basic text.

```kotlin
import androidx.compose.remote.creation.compose.state.rc
import androidx.compose.remote.creation.compose.state.rs
import androidx.compose.remote.creation.compose.state.rsp
import androidx.compose.remote.foundation.text.RemoteBasicText
import androidx.compose.ui.graphics.Color

RemoteBasicText(text = "Hello Remote Compose".rs, color = Color.Black.rc, fontSize = 16.rsp)
```

```kotlin
import androidx.compose.remote.creation.compose.layout.RemoteColumn
import androidx.compose.remote.creation.compose.state.rc
import androidx.compose.remote.creation.compose.state.rs
import androidx.compose.remote.creation.compose.state.rsp
import androidx.compose.remote.foundation.text.RemoteBasicText
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight

RemoteColumn {
    RemoteBasicText(
        text = "Bold Text".rs,
        color = Color.Black.rc,
        fontSize = 18.rsp,
        fontWeight = FontWeight.Bold,
    )
    RemoteBasicText(
        text = "Italic Text".rs,
        color = Color.Gray.rc,
        fontSize = 14.rsp,
        fontStyle = FontStyle.Italic,
    )
}
```

```kotlin
import androidx.compose.remote.creation.compose.state.rc
import androidx.compose.remote.creation.compose.state.rs
import androidx.compose.remote.creation.compose.state.rsp
import androidx.compose.remote.creation.compose.text.RemoteFontFamily
import androidx.compose.remote.foundation.text.RemoteBasicText
import androidx.compose.ui.graphics.Color

RemoteBasicText(
    text = "Monospace Font".rs,
    color = Color.Black.rc,
    fontSize = 16.rsp,
    fontFamily = RemoteFontFamily.Monospace,
)
```

| Parameters |
|---|---|
| `text: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteString` | The text to be displayed. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/modifier/RemoteModifier = RemoteModifier` | The `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/modifier/RemoteModifier` to be applied to this text. |
| `color: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteColor? = null` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteColor` to apply to the text. If `https://developer.android.com/reference/kotlin/androidx/compose/remote/foundation/text/package-summary#RemoteBasicText(androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteColor,androidx.compose.remote.creation.compose.state.RemoteTextUnit,androidx.compose.ui.text.font.FontStyle,androidx.compose.ui.text.font.FontWeight,androidx.compose.remote.creation.compose.text.RemoteFontFamily,androidx.compose.ui.text.style.TextAlign,androidx.compose.ui.text.style.TextOverflow,kotlin.Int,androidx.compose.ui.text.font.FontVariation.Settings,androidx.compose.remote.creation.compose.text.RemoteTextStyle)` is not specified, and it is not provided in `https://developer.android.com/reference/kotlin/androidx/compose/remote/foundation/text/package-summary#RemoteBasicText(androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteColor,androidx.compose.remote.creation.compose.state.RemoteTextUnit,androidx.compose.ui.text.font.FontStyle,androidx.compose.ui.text.font.FontWeight,androidx.compose.remote.creation.compose.text.RemoteFontFamily,androidx.compose.ui.text.style.TextAlign,androidx.compose.ui.text.style.TextOverflow,kotlin.Int,androidx.compose.ui.text.font.FontVariation.Settings,androidx.compose.remote.creation.compose.text.RemoteTextStyle)`, then `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Black()` will be used. |
| `fontSize: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteTextUnit? = null` | The size of the font. |
| `fontStyle: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontStyle? = null` | The font style to be applied to the text. |
| `fontWeight: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight? = null` | The font weight to be applied to the text. |
| `fontFamily: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/text/RemoteFontFamily? = null` | The font family to be applied to the text. |
| `textAlign: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextAlign? = null` | The alignment of the text within its container. |
| `overflow: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextOverflow = TextOverflow.Clip` | How visual overflow should be handled. |
| `maxLines: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = Int.MAX_VALUE` | An optional maximum number of lines for the text. |
| `fontVariationSettings: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontVariation.Settings? = null` | The font variation settings to be applied to the text. |
| `style: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/text/RemoteTextStyle = RemoteTextStyle.Default` | The `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/text/RemoteTextStyle` to be applied to the text. |