The ui5-textarea component is used to enter multiple rows of text.
When empty, it can hold a placeholder similar to a ui5-input.
You can define the rows of the ui5-textarea and also determine specific behavior when handling long texts.
Defines the value state of the component. Note: If maxlength property is set, the component turns into "Critical" state once the characters exceeds the limit. In this case, only the "Negative" state is considered and can be applied.
Defines the number of visible text rows for the component. Notes: - If the growing property is enabled, this property defines the minimum rows to be displayed in the textarea. - The CSS height property wins over the rows property, if both are set.
Determines whether the characters exceeding the maximum allowed character count are visible in the component. If set to false, the user is not allowed to enter more characters than what is set in the maxlength property. If set to true the characters exceeding the maxlength value are selected on paste and the counter below the component displays their number.
Determines the name by which the component will be identified upon submission in an HTML form. Note: This property is only applicable within the context of an HTML Form element.
Defines the value state message that will be displayed as pop up under the component. The value state message slot should contain only one root element. Note: If not specified, a default text (in the respective language) will be displayed. Note: The valueStateMessage would be displayed if the component has valueState of type Information, Critical or Negative.
You can use the maxlength and showExceededText properties to define characters limit
and to indicates how many characters are remaining before the limit or exceeding after the limit.