---
url: https://docs.juniper.bot/en/message-templates/components/text-input.md
description: Text Input component used in Modal Forms.
---

[action]: ../../../cmd/custom/actions/index

[actions]: ../../../cmd/custom/actions/index

[`modal.values`]: ../../types/custom-commands/modal

# Text Input

Text Input is data input component that lets your members enter any text data.

This component has the following settings:

![text_input_settings_en](text_input_settings_en.png)

* **Label** — label displayed on the text input;
* **Description** — description displayed on the text input with smaller font size;
* **Identifier** — component identifier, enter something related to the component;
  ::: info
  Identifier must be unique across all message components of this action.

  The message template of [Action] being executed by this modal will get [`modal.values`] variable map, which keys
  will be those identifiers and their values are data entered by member.

  Thus, this way [Action] can determine what exact values have been entered.
  :::
* **Style** — text input style. Either Multi-line or Single-line;
* **The minimum/maximum value length** — value length limitation;
* **Placeholder text if nothing is specified** — is self-explanatory, a placeholder text if nothing is specified;
* **Default Value** — the value that will be filled into the field by default;
  ::: info
  This field supports [template engine](../../advanced/index) so you could fill the text input with some data.
  :::
* **Required** — the value will be required to fill if checked.

## Availability { #availability }

This component is only available for [Modal Form](../../../cmd/custom/actions/modal-form) actions.
