Textarea
A textarea is an interface element used to receive user input or display multiline text. It is commonly used in input fields, comment sections, or any scenario that requires user input or displaying large blocks of text.
For more detailed information, you can refer to this link: https://docs.lvgl.io/8.3/widgets/core/textarea.html
Properties
A textarea has several properties to define its behavior and appearance. Here are some common textarea properties:
- Text: Used to set the text content displayed in the textarea.
- Placeholder: Used to set the placeholder text in the textarea, providing a hint to the user about the expected input or providing relevant information.
- Single Line: Specifies whether the textarea only accepts single-line text. If set to single-line mode, the textarea will automatically adjust its width to fit a single line of text.
- Password Mode: Specifies whether the textarea is a password input field, hiding the actual content entered by the user.
| Textarea Properties | |
|---|---|
| Text | lv_textarea_set_text |
| Placeholder | lv_textarea_set_placeholder_text |
| Single Line | lv_textarea_set_one_line |
| Password Mode | lv_textarea_set_password_mode |
Styles
A textarea also has some styles to define its appearance and visual style.
- MAIN: Used to set the main style of the textarea, including the style of regular text.
- TEXTAREA: Used to set the style of the placeholder text in the textarea.
Example

8MS