App Expandable Text
fun AppExpandableText(text: String, modifier: Modifier = Modifier, maxLines: Int = 3, expandText: StringResource = Res.string.action_more, expandTextColor: Color = MaterialTheme.colorScheme.primary, collapseText: StringResource = Res.string.action_less, collapseTextColor: Color = MaterialTheme.colorScheme.primary, textAlign: TextAlign = TextAlign.Start, testTag: String = AppExpandableTextTags.TEXT_CONTAINER)
A text component that truncates long text and provides a "More" link to expand it.
Parameters
text
The full text to be displayed.
modifier
The modifier to be applied to the layout.
max Lines
The maximum number of lines to show when collapsed.
expand Text
The StringResource to show for the expansion link.
expand Text Color
The color of the expansion link.
collapse Text
The StringResource to show for the collapse link.
collapse Text Color
The color of the collapse link.
text Align
The alignment of the text.
test Tag
Optional tag for testing identification.