The TextArea component lets users enter long form text which spans over multiple lines.
View source codeChangeEventHandler<HTMLTextAreaElement>
Handler that is called when the value changes.
string
The current value (controlled).
string
className for the element
string
The id of the TextArea
boolean
Whether the TextArea is disabled.
Default: falseboolean
Whether the TextArea is invalid.
Default: falseboolean
Whether the TextArea should be read only.
Default: falsenumber
The maximum number of characters supported by the TextArea.
string
The name of the TextArea, used when submitting an HTML form
FocusEventHandler<HTMLTextAreaElement>
Handler that is called when the element loses focus.
FocusEventHandler<HTMLTextAreaElement>
Handler that is called when the element receives focus.
KeyboardEventHandler<HTMLTextAreaElement>
Handler that is called when a key is pressed.
string
Temporary text that occupies the TextArea when it is empty.
Ref<HTMLTextAreaElement>
number
The number of visible text lines for the control.
Default: 3