--- hide_title: true hide_table_of_contents: true title: Text Input node --- <##head##> # Text Input This node places a text input field in the visual tree. The input can be used to capture information from a user.
![](/nodes/ui-controls/text-input/textinput_visual.png)
The captured value can easily be connected to other nodes in a project.
![](/nodes/ui-controls/text-input/textinput_node.png)
<##head##> ## Inputs
| Data | Description | | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Text | The text string of the Text Input node. Setting this will change the current text, unless _Set_ is connected, then it will be updated when _Set_ receives a signal. | | Type | The type of the Text Input.

`Text`: A single line text input (default).
`Text Area`: A multi line text input.
`Email`: A single line email text input.
`Number`: A single line number input.
`Password`: A single line password input, will mask password by default. | | Placeholder | The placeholder text for when the Text Input is empty. | | Placeholder Opacity | The opacity of the placeholder text. `0` is completely transparent and invisible. `1` is completely solid and opaque. | | Text Alignment | The alignment of the text string within the Text Input node's bounding box. | | Signal | Description | | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Set | Sets the text field value to the text in the _Text_ input. | | Clear | Clears the text. | | Focus | Focuses the text field.

_Note_: Some browsers, most notably Safari, only allow focus if it originates from a user event, like a click. So using a Delay node or other method might not work. | | Blur | Removes the keyboard focus. |
### Visual This node supports the following [Visual Input Properties](/nodes/shared-props/inputs/visual-input-properties/): - [Margin](/nodes/shared-props/inputs/visual-input-properties/#margin) - [Padding](/nodes/shared-props/inputs/visual-input-properties/#padding) - [Alignment](/nodes/shared-props/inputs/visual-input-properties/#alignment) - [Dimensions](/nodes/shared-props/inputs/visual-input-properties/#dimensions) - [Layout, Position](/nodes/shared-props/inputs/visual-input-properties/#-position) - [Text Style](/nodes/shared-props/inputs/visual-input-properties/#text-style) - [Style](/nodes/shared-props/inputs/visual-input-properties/#style) - [Border Style](/nodes/shared-props/inputs/visual-input-properties/#border-style) - [Corner Radius](/nodes/shared-props/inputs/visual-input-properties/#corner-radius) - [Box Shadow](/nodes/shared-props/inputs/visual-input-properties/#box-shadow) - [Placement](/nodes/shared-props/inputs/visual-input-properties/#placement) - [Other](/nodes/shared-props/inputs/visual-input-properties/#other) - [Advanced HTML](/nodes/shared-props/inputs/visual-input-properties/#advanced-html) ## Outputs
| Data | Description | | -------------------------------------- | ------------------------ | | Text | The current text string. | | Signal | Description | | -------------------------------------------- | -------------------------------------------------- | | On Enter | Signal triggered when Enter/Return key is pressed. |
It also features the standard set of UI control signals: @include "../../shared-props/outputs/_control-events.md" ### States Apart from triggering signals the Checkbox node also notifies of its state through data outputs: @include "../../shared-props/outputs/_control-states.md" ### Visual This node supports the following [Visual Output Properties](/nodes/shared-props/outputs/visual-output-properties/): - [Bounding Box](/nodes/shared-props/outputs/visual-output-properties/#bounding-box) - [Mounted](/nodes/shared-props/outputs/visual-output-properties/#mounted) - [Other](/nodes/shared-props/outputs/visual-output-properties/#other)
@include "../../shared-props/inputs/_visual-input-properties.md" @include "../../shared-props/outputs/_visual-output-properties.md"