The Window is the root component of every WindUI interface. It renders a floating, draggable panel that contains a topbar, a sidebar with navigation tabs and sections, and a main content area where tab content is displayed. Create a window by callingDocumentation 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.
WindUI:CreateWindow(Config).
Config
Text displayed in the topbar title area.
Secondary text rendered beneath the title in the topbar.
Icon shown in the topbar next to the title. Accepts an icon name or asset ID.
Size of the topbar icon in pixels.
When
true, the icon color follows the active theme color.Corner radius applied to the topbar icon.
Folder name used to persist config files. Enables the config system when set.
Initial window size. Clamped between
MinSize and MaxSize.Minimum allowed window size.
Maximum allowed window size.
Whether the user can drag the resize handle in the bottom-right corner.
Keyboard key that toggles the window open or closed.
Topbar configuration.
Height sets the bar height in pixels. ButtonsType accepts "Default" (icon buttons on the right) or "Mac" (traffic-light style buttons on the left).Configuration for the floating open button shown when the window is closed. Accepts
Title, CornerRadius, StrokeThickness, Enabled, Draggable, OnlyMobile, Scale, and Color.Window background. Accepts an rbxassetid string, an HTTPS image URL, a
video:<url> string, or a UIGradient-compatible table.Transparency of the background image or video layer.
Transparency of the drop shadow rendered beneath the window.
Enables a translucent window background.
Enables the acrylic (frosted glass) background effect.
Corner radius of the outer window frame.
Overrides the default corner radius used for all elements inside the window.
Width of the left sidebar in pixels.
When
true (the default), the search bar at the bottom of the sidebar is hidden. Set to false explicitly to show the search bar.Displays a custom scrollbar in the sidebar and tab content area.
Enables the updated element style with pill-shaped corners and tighter spacing.
Hides the rounded background panel behind the main content area.
Automatically scales the window down on smaller viewports to keep it fully visible.
When
true, clicking the close button immediately destroys the window instead of showing a confirmation dialog.Renders a user profile card at the bottom of the sidebar. Accepts
Enabled, Anonymous, and Callback.Overrides the default icon size for topbar buttons. Defaults to
11 for Mac style and 16 for Default style.Methods
Navigation
Creates a tab directly in the sidebar (not inside a section). Returns a Tab object.
Creates a collapsible section header in the sidebar that can contain tabs. Returns a Section object.
Window:SelectTab(tabObject)
Programmatically selects a tab by passing the Tab object returned from
Window:Tab() or Section:Tab().Window:Divider()
Inserts a thin horizontal divider line into the sidebar between tab entries.
Topbar
Adds a badge to the topbar center area.
| Field | Type | Description |
|---|---|---|
Title | string | Text shown inside the badge. |
Icon | string | Optional icon name shown before the text. |
Color | Color3 | Background fill color of the badge. |
Border | boolean | Adds a glass-sheen border overlay. |
Adds a custom icon button to the topbar right side (or left on Mac style).
| Field | Type | Description |
|---|---|---|
Name | string | Internal identifier. |
Icon | string | Icon name or asset ID. |
Callback | function | Called when the button is clicked. |
LayoutOrder | number | Controls the button’s order. |
IconThemed | boolean | Use theme color for the icon. |
Color | Color3 | Background color (Mac style only). |
IconSize | number | Overrides the icon size in pixels. |
Visibility
Window:Open()
Opens the window with an animated expand transition. Fires the
OnOpen callback.Window:Close()
Closes the window with an animated collapse transition. Fires the
OnClose callback. Returns a Close object with a :Destroy() method.Window:Toggle()
Opens the window if it is closed, or closes it if it is open.
Window:Destroy()
Closes and destroys the window, removing all GUI instances and disconnecting all signals.
Appearance
Window:SetTitle(text)
Updates the title text displayed in the topbar.
Window:SetAuthor(text)
Updates or creates the author subtitle beneath the title in the topbar.
Window:SetUIScale(number)
Sets the
UIScale for the entire window. Animates to the new scale. Returns the Window.Window:SetPanelBackground(boolean)
Shows or hides the rounded background panel behind the main content area.
Window:SetSize(UDim2)
Animates the window to a new size.
Window:SetBackgroundImage(id)
Swaps the window background image to a new asset ID.
Window:SetBackgroundImageTransparency(number)
Sets the transparency of the background image.
Window:SetToTheCenter()
Animates the window position back to the center of the screen.
Interaction
Window:SetToggleKey(Enum.KeyCode)
Sets the keyboard key used to toggle the window open or closed.
Window:LockAll()
Calls
:Lock() on every element registered in the window.Window:UnlockAll()
Calls
:Unlock() on every element registered in the window.Window:Dialog(Config)
Opens a modal dialog over the window.
| Field | Type | Description |
|---|---|---|
Title | string | Dialog heading text. |
Content | string | Body text (supports RichText). |
Icon | string | Optional icon shown beside the title. |
Width | number | Dialog width in pixels. Defaults to 320. |
Buttons | table | Array of { Title, Icon, Callback, Variant }. |
Callbacks
Window:OnOpen(func)
Registers a function to call whenever the window opens.
Window:OnClose(func)
Registers a function to call whenever the window closes.
Window:OnDestroy(func)
Registers a function to call when the window is destroyed.