Text
fun UiScope.Text(text: UiText, style: TextStyle = TextStyle.Normal, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
Emits one single-line profile-backed text component.
Receiver
active owner-thread screen scope.
Parameters
text
unresolved text retained for drawing and semantics.
style
profile-backed color and shadow policy.
modifier
active behavior applied to the text.
key
optional stable sibling identity.
Throws
when the profile cannot render text.
when no runtime screen evaluation is active.
fun UiScope.Text(text: String, style: TextStyle = TextStyle.Normal, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
Emits one literal single-line profile-backed text component.
Receiver
active owner-thread screen scope.
Parameters
text
literal converted to UiText.Literal.
style
profile-backed color and shadow policy.
modifier
active behavior applied to the text.
key
optional stable sibling identity.
Throws
when the profile cannot render text.
when no runtime screen evaluation is active.