Texty
Displays text with various display styles, including normal, list, and utility styles.
Built on top of Compose Foundation, this composable extends BasicText with additional display capabilities such as typing effects, animations, and other unique text behaviors.
Parameters
The text to be displayed.
The display style to be applied to the text. Defaults to DisplayStyle.Basic.
Modifier used to adjust the composable's appearance and layout behavior.
Specifies the style of the text, including font size, weight, and color. Defaults to TextStyle.Default.
Callback invoked with the TextLayoutResult when the text is measured and laid out. Useful for observing text measurements and layout details.
How to handle text overflow when content exceeds the available space. Uses TextOverflow.Clip by default.
Determines if the text should wrap at line breaks. Defaults to true, consistent with Compose behavior.
The maximum number of lines allowed for the text. Defaults to unlimited lines.
The minimum number of lines required for the text layout, even if less content is present.
Optional ColorProducer to dynamically set the text color, aligning with Compose’s color configuration.
Displays a list of texts with various display styles.
Parameters
A list of strings to be displayed.
The display style to be applied to the list of text.
Modifier applied to adjust the composable's appearance and layout behavior.
The style to apply to the displayed text, including font and color configurations.
Callback invoked with the layout results when the text is measured and laid out.
Specifies how text content behaves when exceeding the available space.
If true, text wraps at soft line breaks. Defaults to true.
The maximum number of lines allowed for the text. Defaults to unlimited.
The minimum number of lines required for the text layout.
Optional ColorProducer for dynamically setting the text color.
Displays utility-based text styles, such as loading and timekeeping.
Parameters
The utility to apply.
Modifier applied to adjust the composable's appearance and layout behavior.
The style to apply to the displayed text, including font and color configurations.
Callback invoked with the layout results when the text is measured and laid out.
Specifies how text content behaves when exceeding the available space.
If true, text wraps at soft line breaks. Defaults to true.
The maximum number of lines allowed for the text. Defaults to unlimited.
The minimum number of lines required for the text layout.
Optional ColorProducer for dynamically setting the text color.