Text component defines the native text using the server-driven information.
The structure is represented by the attributes below:
|text||String or Binding||✓||Defines the content in text to be rendered.|
|styleId||String||Refers to a locally configured style that it will be applied on the text.|
|textColor||String||Defines the text color.|
|alignment||TextAlignment||Define the alignment of the text.|
|LEFT||Content align to the left in the text viewer.|
|CENTER||Content align in the center in the text viewer.|
|RIGHT||Content align to the right in the text viewer.|
Text(text = "Hello World!")
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.