Sections serve two distinct purposes in WindUI depending on where they are created: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.
- Sidebar sections — created via
Window:Section(Config), they render a collapsible header in the sidebar that groups Tab entries under a title. - Content sections — created via
Tab:Section(Config)orGroup:Section(Config), they render a text heading or a boxed container directly inside a tab’s content panel. These are elements, not sidebar navigation, and behave like any other element (they can contain buttons, toggles, etc.).
Sidebar Section
UseWindow:Section(Config) to create a collapsible group in the sidebar. Call :Tab() on the returned object to add tabs that belong to that group.
Config
Text displayed as the section header in the sidebar.
Icon shown to the left of the header title.
When
true, the icon color follows the active theme.When
true, the section starts expanded instead of collapsed.Methods
Adds a tab to this sidebar section. The tab entry appears under the section header and the section becomes expandable. Returns a Tab object.
Section:Open()
Expands the section with an animated slide-down transition.
Section:Close()
Collapses the section with an animated slide-up transition.
A sidebar section only shows the chevron expand/collapse control after at least one tab has been added via
Section:Tab().Content Section (Element)
UseTab:Section(Config) to render a heading or boxed container inside a tab’s content panel. Once any child element is added to it, it becomes collapsible.
Config
The heading text.
A secondary description rendered beneath the title.
Font size of the title text.
Font weight of the title text.
Transparency of the title text.
0 is fully opaque.Wraps the section and its children in a rounded background frame.
Adds a glass-sheen border to the box frame. Requires
Box = true.When
true, the section starts in the expanded state. Only applies once child elements are added.Icon shown to the left of the heading.
When
true, the icon color follows the active theme.Element Methods
Content sections support the same element methods as Tab:Section:Button() · Section:Toggle() · Section:Slider() · Section:Input() · Section:Dropdown() · Section:Colorpicker() · Section:Keybind() · Section:Group() · Section:Section() · Section:Space() · Section:Paragraph() · Section:Image() · Section:Code()
Methods
Section:Open()
Expands the section to reveal its child elements.
Section:Close()
Collapses the section, hiding child elements.
Section:SetTitle(title)
Updates the heading text.
Section:SetDesc(desc)
Updates or creates the description text beneath the heading.