# Button

## Properties

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

***

```lua
button.Title = "My Button"
button.Description = "This is my Button"
button.Enabled = true
button.LayoutOrder = 1 -- if not given its in order of time added
```

***

## Methods

These are the methods of Button

***

### Remove

```lua
button:Remove()
```

* Removes the Button from the page

***

## Events

These are the events of Button

***

### On Click

```lua
button.OnClick:Connect(function()
    print("cliked")
end)
```

* Fires when the Button is clicked

***

### On Press

```lua
button.OnPress:Connect(function()
    print("down")
end)
```

* Fires when the Button is Pressed

***

### On Release

```lua
button.OnRelease:Connect(function()
    print("up")
end)
```

* Fires when the Button is being Released


---

# 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/button.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.
