# Textarea

[TwebBlockTextareaControl](https://github.com/tigriweb/components/blob/master/attributes/TwebBlockTextareaControl.js)

<div align="left" data-full-width="false"><figure><img src="https://870798947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWAokPCWM65E5XQJVixgi%2Fuploads%2Fp87XwK9uNysi6XmMBuMT%2Ftextarea.jpg?alt=media&#x26;token=cf693c45-102e-4fd2-9725-2b3bb6282f00" alt=""><figcaption></figcaption></figure></div>

<details>

<summary>{ label, help, name*, onChange, attributes*, setAttributes* }</summary>

```jsx
/**
 * @param {string} [label] - Component label.
 * @param {string} [help] - Component description.
 * @param {string} name - Attribute name.
 * @param {function} [onChange] - Callback called when the value changes.
 * @param {object} attributes - Object containing block attributes.
 * @param {function} setAttributes - Function to set new block attribute values.
 */
```

</details>

{% code title="block.json" overflow="wrap" %}
```json
"testTextarea": {
	"type": "string",
	"default": ""
}
```
{% endcode %}

{% code title="index.js" overflow="wrap" %}
```jsx
import {
	TwebBlockTextareaControl,
} from '@tigriweb/components/attributes';
```
{% endcode %}

{% code title="index.js | edit()" %}
```jsx
<TwebBlockTextareaControl
	label={ __('Textarea Label', 'your-theme-name') }
	help={ __('Textarea Description', 'your-theme-name') }
	name="testTextarea"
	{ ...{ attributes, setAttributes } }
/>
```
{% endcode %}
