Text
A themable composable that displays text.
For interactive preview & code examples, visit Text Documentation.
Basic Example
Text("Hello, World!", fontWeight = FontWeight.Bold, fontSize = 16.sp)Parameters
The text to be displayed.
Modifier to be applied to the text.
The style to be applied to the text.
The alignment of the text.
The height of each line of text.
The size of the text.
The spacing between letters.
The weight of the text.
The color of the text.
The font family to be used.
Whether the text should be displayed in a single line.
The minimum number of lines to display.
The maximum number of lines to display.
How to handle text overflow.
A themable composable that displays text.
For interactive preview & code examples, visit Text Documentation.
Basic Example
Text("Hello, World!", fontWeight = FontWeight.Bold, fontSize = 16.sp)Parameters
The annotated text to be displayed.
Modifier to be applied to the text.
The style to be applied to the text.
The alignment of the text.
The size of the text.
The spacing between letters.
The weight of the text.
The color of the text.
The height of each line of text.
The font family to be used.
Whether the text should be displayed in a single line.
The minimum number of lines to display.
The maximum number of lines to display.
How to handle text overflow.