Textarea
Data Entry
@rockshin/tao-uiMulti-line text input with optional auto sizing.
When to use
Use Textarea for longer freeform content such as descriptions, notes, and comments.
Recommended
- Set rows or autoSize based on expected content length.
- Use maxLength when limits are strict.
Avoid
- Do not use the component outside its intended interaction model.
Examples
Basic usage
Variants
Sizes and autosize
Controlled text and character count
Native maxLength limits input; controlled state displays the character count.
Bounded automatic height
Enter multiple lines to grow between minRows and maxRows.
Read-only, disabled, and error
Distinguish readable content, unavailable input, and an error requiring correction.
Submit and reset
Read content by name and use reset to restore the default value.
Semantic styling
Style the textarea semantic part while retaining component states and focus behavior.
Clear and count
Textarea and Input.TextArea are the same component, supporting allowClear, onClear, showCount, count, onPressEnter, and variant="underlined". See the Input family examples and API.