JchuExpandableText

fun JchuExpandableText(text: String, expanded: Boolean, onExpandedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, collapsedMaxLines: Int = 3, expandLabel: String = "Show more", collapseLabel: String = "Show less", style: TextStyle = MaterialTheme.typography.bodyMedium, color: Color = MaterialTheme.colorScheme.onSurface)

Displays text with a caller-controlled expanded state.

The action remains visible for predictable behavior with dynamic text and initial expanded states. Callers should provide localized expandLabel and collapseLabel values.