Controlled Mode

By default, the TextArea is in an uncontrolled state.

The TextArea provides options for controlling the value. It supports setting it's value using value prop to the underlying textarea element.

Controlling the Value

To manage the value of the TextArea:

  1. Use its value property.
  2. Handle the onChange event.
  3. Pass the new value through the props.
Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?