> For the complete documentation index, see [llms.txt](https://brady-xyz.gitbook.io/maclib-ui-library/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/button.md).

# Button

<figure><img src="https://2943218207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRtWRcExHV8IBJHoV9bx%2Fuploads%2FJ2rnCfAn4ESjEgC6kl2U%2Fimage.png?alt=media&amp;token=df69d30f-6e9a-4a7d-bdcd-44ea1dbddd7a" alt=""><figcaption></figcaption></figure>

```lua
Section:Button({
  Name <string>
  Callback <function() void>
}, <string or nil> Flag)
```

Functions

```lua
:UpdateName(<string>)
:SetVisiblity(<boolean>)

.Settings : table -- Not everything may be updated, but Callback should be correct.
```

Example

```lua
sections.MainSection1:Button({
	Name = "Kill All",
	Callback = function()
		print("Killed everyone.")
	end,
})
```
