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

# Tab

> Top-level container for a script's settings page.

The tab for your script's settings page. One per script; create it with `api.ui.tab` (see [UI overview](/ui/overview)). Removed automatically on unload.

## Creation

```luau theme={null}
api.ui.tab(title: string, icon: string?): Tab
```

<ParamField path="title" type="string" required>
  Tab label.
</ParamField>

<ParamField path="icon" type="string">
  Image asset name.
</ParamField>

## AddSection

```luau theme={null}
tab:AddSection(title: string, column: number?): Section
```

A section inside your tab.

<ParamField path="title" type="string" required>
  Section heading.
</ParamField>

<ParamField path="column" type="number" default="1">
  `1` (left) or `2` (right).
</ParamField>

<ResponseField name="returns" type="Section">
  Use this to add widgets. See [Section](/ui/classes/section).
</ResponseField>

## Example

```luau theme={null}
local tab = api.ui.tab("Aim Assist", "crosshair")
local general = tab:AddSection("General", 1)
local advanced = tab:AddSection("Advanced", 2)
```
