> 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/meta/text.md).

# Text

[TwebMetaTextControl](https://github.com/tigriweb/components/blob/master/meta/TwebMetaTextControl.js)

<div align="left" data-full-width="false"><figure><img src="/files/JSS72cl76xeAwC3KByFm" alt=""><figcaption></figcaption></figure></div>

<details>

<summary>{ label, help, type, metaKey* }</summary>

```jsx
/**
 * @param {string} [label] - Component label.
 * @param {string} [help] - Component description.
 * @param {string} [type] - Input type: text, email, url, number, date.
 * @param {string} metaKey - Registered meta key from register_post_meta().
 */
```

</details>

{% code title="functions.php" overflow="wrap" %}

```php
register_post_meta( 'post_type_name', 'test_text', array(
	'type'         => 'string',
	'default'      => '',
	'single'       => true,
	'show_in_rest' => true,
) );
```

{% endcode %}

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

```jsx
import {
	TwebMetaTextControl,
} from '@tigriweb/components/meta';
```

{% endcode %}

{% code title="index.js | PanelBody" %}

```jsx
<TwebMetaTextControl
	label={ __('Text Label', 'your-theme-name') }
	help={ __('Text Description', 'your-theme-name') }
	metaKey="test_text"
/>
```

{% endcode %}
