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

# Buttons

This page will show you how to use buttons.

Toggle Button:

```
function ButtonPress(State)
print("Button was pressed")
end

Page1:newBtn("Toggle Button!", ButtonPress, false) -- false will indicate if it is a normal button.
```

Normal Button:

```
function ButtonPress(State)
print("Button was pressed")
end

Page1:newBtn("Normal Button!", ButtonPress, true) -- true will indicate if it is a normal button.
```
