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

# Tab API

> Add components to floating tabs and work with component handles.

A `Tab` is a draggable, collapsible floating window. Each tab owns its component list, flyout area, saved position, and minimized state.

## Component builders

| Method | Returns | Purpose |
| :- | :- | :- |
| `tab:AddButton(config)` | Button handle | One-shot action or boolean toggle. |
| `tab:AddSlider(config)` | Slider handle | Numeric or boolean slider. |
| `tab:AddInput(config)` | Input handle | Text submission or toggle input. |
| `tab:AddTextBox(config)` | Input handle | Alias of `AddInput`. |
| `tab:AddTextbox(config)` | Input handle | Alias of `AddInput`. |
| `tab:AddSelection(config)` | Selection handle | Single-select picker by default, or multi-select picker when `MultiSelect = true`. |
| `tab:AddLabel(config)` | Label handle | Static text row with native rich text enabled by default. |

```lua theme={null}
local tab = app:CreateTab("Main")

tab:AddLabel("Player")
tab:AddButton({ Info = { Title = "Heal" } })
tab:AddSlider({ Info = { Title = "WalkSpeed" }, Min = 16, Max = 100, Default = 16 })
tab:AddInput({ Info = { Title = "Message" } })
tab:AddSelection({ Info = { Title = "Target" } })
```

All component titles and description tooltips support Roblox rich-text markup by
default. Set `RichText = false` on a component config, or `Info.RichText = false`,
to render that component's title and tooltip as plain text. See the component pages
for examples and parameter details.

> [!NOTE]
>
> The implementation accepts an internal second parameter (`pOverride`) on component builders when the library renders nested flyouts. Normal application code should omit it.

## `tab:GetFrame()`

Returns the tab header `TextLabel` instance.

```lua theme={null}
local header = tab:GetFrame()
header.TextSize = 20
```

## `tab:closeMore()`

Closes the tab's currently open flyout.

```lua theme={null}
tab:closeMore()
```

## Component handles

Component builders return small Lua tables rather than exposing an entire Roblox GUI hierarchy. The exact handles are documented on each component page.

> [accordion] Button handle
>
> ```lua theme={null}
> button.frame
> button.button
> button.text
> button.isToggle
> button:getValue()
> button:getId()
> button:updateText()
> button.setVisualState(state)
> button.activate()
> ```

> [accordion] Input handle
>
> ```lua theme={null}
> input:getValue()
> input:getId()
> input:isToggled()
> ```

> [accordion] Slider handle
>
> ```lua theme={null}
> slider:getValue()
> slider:getId()
> slider:setValue(value)
> ```

> [accordion] Selection handle
>
> ```lua theme={null}
> selection:getValue()
> selection:GetValue()
> selection:SetValue(value)
> selection:UpdateSummary(text)
> selection:AddButton(config)
> selection:AddOption(config)
> selection:AddTextBox(config)
> selection:AddSlider(config)
> selection:AddLabel(config)
> ```

> [accordion] Label handle
>
> ```lua theme={null}
> label.frame
> label.textLabel
> label:SetText(text)
> label:GetText()
> ```

## Complete tab surface

The user-facing tab API is:

```text theme={null}
tab:AddButton(config)
tab:AddInput(config)
tab:AddTextBox(config)  -- alias
tab:AddTextbox(config)  -- alias
tab:AddSelection(config)
tab:AddSlider(config)
tab:AddLabel(config)
tab:GetFrame()
tab:closeMore()
```

The methods `openMore()` and `buildContextMenu()` are implementation helpers used by built-in flyouts and are intentionally not treated as stable application API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.