defaultValue | string | undefined | Not set | Initial value for uncontrolled use |
invalid | boolean | undefined | false | The danger edge and aria-invalid; say why in a Field.Error |
maxLength | number | undefined | Not set | The most characters allowed. Setting it shows a counter under the field |
maxRows | number | undefined | Not set | Rows the field grows to before it scrolls. Omit to grow without limit |
minRows | number | undefined | 3 | Rows shown when empty; the field grows from here as text is added |
onValueChange | ((value: string) => void) | undefined | Not set | Called with the new value on every change |
resize | "none" | "vertical" | undefinednonevertical | vertical | Whether the person can drag the height. Width never resizes: it would break the column measure |
size | TextareaSize | undefinedxssmmdlg | "md" | Type size, inset and one-row height on the shared control ladder |
value | string | undefined | Not set | Controlled value |
placeholder | string | undefined | Not set | Placeholder text |
disabled | boolean | undefined | false | Dims the field and blocks input |
readOnly | boolean | undefined | false | Shows the text on a dashed edge without letting it change |
onChange | ChangeEventHandler<HTMLTextAreaElement> | undefined | Not set | The native change event |
name | string | undefined | Not set | Form field name |
required | boolean | undefined | Not set | Marks the field required for form validation |
className | string | undefined | Not set | Class on the textarea |
style | CSSProperties | undefined | Not set | — |