Components
Text Area
Multi-line expanded text box for grievance descriptions, remarks, and residential addresses
Multi-line expanded text box for grievance descriptions, remarks, and residential addresses.
Import from com.ux4g.designsystemv1.components.textarea.Ux4gTextArea.
Interactive Preview
Ux4gTextAreaJetpack Compose

Kotlin Usage
import androidx.compose.runtime.*
import com.ux4g.designsystemv1.components.textarea.Ux4gTextArea
@Composable
fun RemarksExample() {
var remarks by remember { mutableStateOf("") }
Ux4gTextArea(
value = remarks,
onValueChange = { remarks = it },
label = "Officer Remarks",
placeholder = "Enter remarks...",
minLines = 3
)
}Parameters
| Prop | Type | Description | Default |
|---|---|---|---|
value * | String | Multi-line text content string. | — |
onValueChange * | (String) -> Unit | Text change event callback. | — |
label | String? | Header title above text area. | null |
placeholder | String | Placeholder text. | "" |
maxCharacters | Int? | Character limit counter displayed at bottom-right. | null |
minLines | Int | Minimum initial height in text lines. | 4 |
maxLines | Int | Maximum expansion limit before internal scrolling. | 8 |
isError | Boolean | Validation error state styling. | false |
errorMessage | String? | Validation error message below input. | null |
enabled | Boolean | Interactive enabled state. | true |
modifier | Modifier | Compose layout modifier. | Modifier |