> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sirius.menu/llms.txt
> Use this file to discover all available pages before exploring further.

# Button

> Run a function when the player clicks.

A button runs its callback when clicked. That is all it does.

<Frame>
  <img src="https://mintcdn.com/sirius-b451bfde/f6FV7zSG5WdJNsXv/images/gen2/button.png?fit=max&auto=format&n=f6FV7zSG5WdJNsXv&q=85&s=6e1faeb152bd193df9d904051993cf04" alt="Button elements in a window" width="705" height="730" data-path="images/gen2/button.png" />
</Frame>

```lua theme={null}
tab:CreateButton({
    name = "Reset character",
    callback = function()
        game.Players.LocalPlayer.Character:BreakJoints()
    end,
})
```

## Properties

<ResponseField name="name" type="string">
  The label.
</ResponseField>

<ResponseField name="description" type="string">
  Hint text under the label. Optional.
</ResponseField>

<ResponseField name="icon" type="string | number">
  An icon shown beside the label. Optional.
</ResponseField>

<ResponseField name="callback" type="function">
  Runs on click.
</ResponseField>
