Text Area
Text area
Use a text area when the expected user input is more than a few words and could span multiple lines. Text area has several unique functionalities not included in the text input, like the resize handle, word counter and character counter.
Implementation note:
As per Carbon's documentation, the text area component has a minimum height of 40px/2.5rem, but regarding accessibility on Android, this value is revised to the Large text input size, as it complies with accessibility.
(From Text input documentation)
Parameters
Text that informs the user about the content they need to enter in the field.
The input String text to be shown in the text input.
The callback that is triggered when the input service updates the text. An updated text comes as a parameter of the callback
Optional Modifier for this text input.
Optionnal text that provides hints or examples of what to enter.
Optional helper text is pertinent information that assists the user in correctly completing a field. It is often used to explain the correct data format.
The interactive state of the text input.
Word/character counter values to be displayed next to the label. The first value is the current count and the second value is the maximum value.
software keyboard options that contains configuration such as KeyboardType and ImeAction.
when the input service emits an IME action, the corresponding callback is called. Note that this IME action may be different from what you specified in KeyboardOptions.imeAction.
The visual transformation filter for changing the visual representation of the input. By default no visual transformation is applied.
the MutableInteractionSource representing the stream of Interactions for this TextField. You can create and pass in your own remembered MutableInteractionSource if you want to observe Interactions and customize the appearance / behavior of this TextField in different Interactions.