Tabs are the primary navigation unit in WindUI. Each tab renders a clickable entry in the sidebar and owns a scrollable content panel in the main area. Create a tab directly on the window or inside a Section.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Footagesus/WindUI/llms.txt
Use this file to discover all available pages before exploring further.
Config
Label shown on the sidebar entry.
Tooltip text displayed when the user hovers over the tab entry for a short delay.
Icon name or asset ID displayed on the sidebar entry.
Tints the icon and wraps it in a small colored background chip when set.
Shape of the icon chip when
IconColor is provided. "Square" produces a squircle chip; omit for a round chip.When
true, the icon color follows the active theme instead of IconColor.Prevents the tab from being selected. The entry renders at reduced opacity and ignores clicks.
When
true, renders a large title heading at the top of the content panel.Horizontal alignment of the in-panel title heading. Only applies when
ShowTabTitle is true.Overrides the placeholder shown when the tab content panel has no elements.
| Field | Type | Description |
|---|---|---|
Icon | string | Icon name for the empty state graphic. |
IconSize | number | Size of the empty state icon. |
Title | string | Heading text for the empty state. |
Desc | string | Subtext for the empty state. |
Renders a glass-sheen border on the selected tab entry.
Elements
All element methods are available directly on the Tab object. Each method accepts a config table and returns the created element.Tab:Button(Config)
A clickable button row.
Tab:Toggle(Config)
An on/off switch or checkbox.
Tab:Slider(Config)
A draggable value slider.
Tab:Input(Config)
A single-line or textarea text input.
Tab:Dropdown(Config)
A dropdown menu with single or multi-select.
Tab:Colorpicker(Config)
An HSBA color picker.
Tab:Keybind(Config)
A key capture field.
Tab:Group(Config)
A horizontal row of elements.
Tab:Section(Config)
An inline content section with an optional collapsible body.
Tab:Notification(Config)
Toast notifications triggered from any callback.
Tab:Dialog(Config)
A modal dialog with configurable buttons.
Tab:Popup(Config)
A floating popup overlay.
Methods
Tab:Select()
Programmatically selects this tab, switching the content panel into view.
Tab:LockAll()
Calls
:Lock() on every element that belongs to this tab.Tab:UnlockAll()
Calls
:Unlock() on every element that belongs to this tab.Returns a list of all locked elements belonging to this tab.
Returns a list of all unlocked elements belonging to this tab.
Tab:ScrollToTheElement(elemindex)
Smoothly scrolls the content panel to bring the element at
elemindex into view, then briefly highlights it.Example
The example below reproduces several tabs frommain.client.lua, showing standalone tabs, tabs inside a section, and the full icon chip syntax.