ExpandableText
fun ExpandableText( containerModifier: Modifier = Modifier, textModifier: Modifier = Modifier, textStyle: TextStyle = TextStyle.Default, text: StringResource, maxLines: Int = 5, expandedMaxLines: Int = Int.MAX_VALUE, overflow: TextOverflow = TextOverflow.Ellipsis, iconSize: Dp = 30.dp, expandedIcon: ImageVector = Outlined.ArrowCircleUp, collapsedIcon: ImageVector = Outlined.ArrowCircleDown)
fun ExpandableText( containerModifier: Modifier = Modifier, textModifier: Modifier = Modifier, textStyle: TextStyle = TextStyle.Default, text: String, maxLines: Int = 5, expandedMaxLines: Int = Int.MAX_VALUE, overflow: TextOverflow = TextOverflow.Ellipsis, iconSize: Dp = 30.dp, expandedIcon: ImageVector = Outlined.ArrowCircleUp, collapsedIcon: ImageVector = Outlined.ArrowCircleDown)
Component to dynamically display a long text initially collapsed
If the text lines are less than the maxLines set its behavior will be the same as a normal Text component
Parameters
containerModifier
The modifier to apply to the container Column
textModifier
The modifier to apply to the Text component
textStyle
The text style to customize the appearance of the text
text
The text value to display
maxLines
The max lines to display in collapsed mode
expandedMaxLines
The max lines value to display in expanded mode
overflow
The behavior of the text in the overflow case
iconSize
The size of the icon indicator
expandedIcon
The icon displayed when the text is in expanded mode
collapsedIcon
The icon displayed when the text is in collapsed mode