logoWindUI Shiny

Multi Section

Expandable container with tabbed inner content.

Multi Section

MultiSection is an expandable container with tabbed inner content.

Create

local Multi = MainTab:MultiSection({
    Title = "Combat Modes",
    Desc = "Switch between profiles",
    Icon = "crosshair",
    Box = true,
    BoxBorder = true,
    Opened = true,
})

Config

KeyTypeDefaultNotes
Titlestring"Section"Header title
Descstring?nilHeader description
Iconstring?nilHeader icon
TextXAlignment"Left" | "Center" | "Right""Left"Header text alignment
TextSizenumber19Header title text size
DescTextSizenumber16Header description text size
BoxbooleanfalseEnables boxed background
BoxBorderbooleanfalseShows outline when Box=true
FontWeightEnum.FontWeightSemiBoldHeader title weight
DescFontWeightEnum.FontWeightMediumHeader desc weight
TextTransparencynumber0.05Header title transparency
DescTextTransparencynumber0.4Header desc transparency
HoverbooleantrueHover/press feedback
OpenedbooleanfalseStarts opened
LockedbooleanfalseStarts locked
LockedTitlestring?nilStored; no built-in label in this container
HeaderSizenumber42Header base size
IconSizenumber20Header icon size
HeaderGapnumber10Horizontal spacing in header
HeaderPaddingXnumberdynamicHorizontal header padding
HeaderPaddingYnumberdynamicVertical header padding
TabGapnumber6Gap between tab chips
TabPaddingXnumber12Tab chip horizontal padding
TabPaddingYnumber8Tab chip vertical padding
TabTextSizenumber15Tab title size
TabDescTextSizenumber13Tab desc size

Multi Section Methods

MethodSignatureDescription
SetIconMulti:SetIcon(iconOrNil)Updates/removes header icon
SetTitleMulti:SetTitle(title)Updates header title
SetDescMulti:SetDesc(descOrNil)Updates/removes description
LockMulti:Lock()Locks header interaction and tab elements
UnlockMulti:Unlock()Unlocks interaction and tab elements
SelectTabMulti:SelectTab(tabValue, isInstant)Selects tab by object, index, or title
GetSelectedTabMulti:GetSelectedTab()Returns selected tab object
GetTabsMulti:GetTabs()Returns all tab objects
TabMulti:Tab(tabConfig)Creates a tab inside this multi section
OpenMulti:Open(isNotAnim)Opens content area
CloseMulti:Close(isNotAnim)Closes content area
DestroyMulti:Destroy()Destroys container and all tab content

Tab Config (Multi:Tab({...}))

KeyTypeDefaultNotes
Titlestring"Tab N"Tab title
Descstring?nilTab subtitle
Iconstring?nilTab icon
IconThemedboolean?nilUses themed icon coloring
SelectedbooleanfalseSelect immediately
OpenedbooleanfalseAlias for immediate select

Multi Section Tab Methods

MethodSignatureDescription
SelectTab:Select(isInstant)Selects this tab
DestroyTab:Destroy()Removes this tab and its elements

Each tab also receives element constructors: Paragraph, Button, ButtonKeybind, Toggle, ToggleKeybind, Slider, Keybind, Input, Dropdown, Code, Colorpicker, Section, MultiSection, Divider, Space, Image, Group, Video.

Full Example (All Multi Section Methods)

local Multi = MainTab:MultiSection({
    Title = "Combat Modes",
    Desc = "Select your profile",
    Icon = "crosshair",
    Box = true,
    BoxBorder = true,
    Opened = true,
})

local Rage = Multi:Tab({
    Title = "Rage",
    Desc = "Aggressive settings",
    Icon = "flame",
    Selected = true,
})

local Legit = Multi:Tab({
    Title = "Legit",
    Desc = "Low profile settings",
    Icon = "shield-check",
})

Rage:Toggle({
    Title = "Silent Aim",
    Value = false,
})

Legit:Slider({
    Title = "FOV",
    Value = { Min = 10, Max = 250, Default = 80 },
})

Multi:SetIcon("swords")
Multi:SetTitle("Profiles")
Multi:SetDesc("Switch behavior quickly")

Multi:SelectTab("Legit", true)
Multi:SelectTab(1, false)
Multi:SelectTab(Rage)

local selected = Multi:GetSelectedTab()
print("Selected tab:", selected and selected.Title)

local allTabs = Multi:GetTabs()
print("Tab count:", #allTabs)

local temp = Multi:Tab({ Title = "Temporary" })
temp:Select(true)
temp:Destroy()

Multi:Open(true)
Multi:Close(false)
Multi:Lock()
Multi:Unlock()

On this page