> For the complete documentation index, see [llms.txt](https://tigriweb.gitbook.io/components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tigriweb.gitbook.io/components/attributes/text.md).

# Text

[TwebBlockTextControl](https://github.com/tigriweb/components/blob/master/attributes/TwebBlockTextControl.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%2FqYOjhPih8fM4cIdcAdHR%2Ftext.jpg?alt=media&amp;token=72baf5ce-6139-4453-a279-f505934d96b2" 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
"testText": {
	"type": "string",
	"default": ""
}
```

{% endcode %}

{% code title="index.js" overflow="wrap" %}

```jsx
import {
	TwebBlockTextControl,
} from '@tigriweb/components/attributes';
```

{% endcode %}

{% code title="index.js | edit()" %}

```jsx
<TwebBlockTextControl
	label={ __('Text Label', 'your-theme-name') }
	help={ __('Text Description', 'your-theme-name') }
	name="testText"
	{ ...{ attributes, setAttributes } }
/>
```

{% endcode %}
