# Toggle

## Properties

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

***

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

***

## Methods

These are the methods of Toggle

***

### Remove

```lua
toggle:Remove()
```

* Removes the Toggle from the page

***

## Events

These are the events of Toggle

***

### On Toggled

```lua
toggle.OnToggle:Connect(function(status: boolean)
    print(status)
end)
```

* Fires when the Toggle has switched status


---

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