TextArea
Importβ
import { TextArea } from '@resultadosdigitais/tangram-components'
Propertiesβ
disabledβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
When the value is true, makes the element not mutable, focusable, or even submitted with the form.
The user can neither edit nor focus on the control.
errorβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
When the value is true, changes the layout to demonstrate that an error has occurred.
successβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
When the value is true, changes the layout to demonstrate that something positive has happened.
placeholderβ
prefixβ
suffixβ
defaultValueβ
valueβ
widthβ
nonResizableβ
requiredβ
rowsβ
invalid ποΈβ
| Concerns | ποΈ Deprecated: - Use with `Form.Control` to set error/invalid style. |
|---|---|
| Type | bool |
Descriptionβ
Sets if is invalid
onChangeβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the value is changed.
<TextArea
name="example"
onChange={function (event) {
const { name, value } = event.target;
console.log(`The input's name is ${name} and the value is ${value}`);
}}
/>
Feedbackβ
To report a problem or suggest changes, use our improvements form or, if you prefer, open an issue on our Github repository.