> For the complete documentation index, see [llms.txt](https://hawklib.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hawklib.gitbook.io/docs/elements/window/tabs/textboxes.md).

# TextBoxes

## TextBox Creation

```luau
local MyTextBox = Tab2:TextBox({
    Title = "Player Name",
    Description = "Enter your name",
    PlaceHolderText = "Name...",
    DisableReset = true, -- true = text won't be cleared after callback and on click
    Callback = function(text)
        print("Entered text:", text)
    end
})
```

### TextBox Values

Set Test

```luau
-- Change textbox value
MyTextBox:SetText("New Name")
```
