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

# TextInput

This User Interface Component lets your user to communicate with the game

> Component Author: [Jabo](https://github.com/jabo-bernardo)\
> Release Date: April 13, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new TextInput(Scene parentScene, Vector2 position, Vector2 scale);
```

{% endtab %}

{% tab title="Methods" %}

```java
getTransform(); // Returns Transform Object

getValue(); // Returns String

setFont(Font font); // Sets the Text font

setColor(Color backgroundColor, Color foregroundColor, Color selectedColor);

setBackgroundImage(Sprite spr);

limitCharacter(int limit); // Limit how many character can be typed
```

{% endtab %}
{% endtabs %}
