Textarea API
API reference docs for theTextarea
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| The initial value of the textarea. This is used when the component is uncontrolled. | _ |
|
| The controlled value of the textarea. Use this with onChange to create a controlled component. | _ |
|
| Placeholder text displayed when the textarea is empty. | _ |
|
| When true, prevents the user from interacting with the textarea. |
|
|
| Specifies the visible number of lines in the textarea. |
|
|
| Callback function that fires when the textarea loses focus. | _ |
|
| Callback function that fires when the textarea's value changes. | _ |
|
| Callback function that fires when the textarea receives focus. | _ |
|
| Callback function that fires when a key is pressed while the textarea is focused. | _ |
Note: Starting from eds-core@1.21.0
, the Textarea supports all native HTML <textarea>
attributes and event listeners (e.g., onPaste
, onCut
, aria-*
, etc.) out of the box.