The ui5-textarea component is used to enter multiple lines 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 "Warning" state once the characters exceeds the limit. In this case, only the "Error" state is considered and can be applied.
Defines the number of visible text lines 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 with which the component will be submitted in an HTML form. Important: For the name property to have effect, you must add the following import to your project: import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js"; Note: When set, a native input HTML element will be created inside the component so that it can be submitted as part of an HTML form. Do not use this property unless you need to submit a form.
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, Warning or Error.
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.