Text
A native label displaying a string.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
enabled | boolean | No |
label | string | No |
live | string | No |
maxLines | integer | No |
semantics | string | No |
target | string | No |
text | string | Yes |
Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.
Example
<Text text="Hello" class="font-body" />
Defaults, values, and validation
live accepts off/polite/assertive. Text is a leaf. Bind a string; there is no implicit numeric-to-string conversion.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
No component events.
Local commands
No local commands.