# Texbox

## Properties

These are the properties of Textbox, you can both read and write them

***

```lua
textbox.Text = "Hello"
textbox.Title = "My Textbox"
textbox.Description = "This is my Textbox"
textbox.LayoutOrder = 1 -- if not given its in order of time added
textbox.ClearTextOnFocus = true -- false by default
```

***

## Methods

These are the methods of Textbox

***

### Remove

```lua
textbox:Remove()
```

* Removes the Textbox from the page

***

## Events

These are the events of Textbox

***

### On Focused

```lua
textbox.Focused:Connect(function()
    -- Code
end)
```

* Fires when the Textbox is Focused

***

### On Focus Lost

```lua
textbox.FocusLost:Connect(function()
    -- Code
end)
```

* Fires when the Textbox lost the Focus

***

### On Text Changed

```lua
textbox.TextChanged:Connect(function()
    -- Code
end)
```

* Fires when the Textbox's text is changed


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://riky47s-organization.gitbook.io/arceus-x/extensions/ui-library/page/texbox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
