Skip to content

Search documentation

Enter at least two characters.

    Src/Main.luau Luau
    local Window = Instance.new("Window", {
        Title = "Hello, LUI",
        Size = UDim2.fromOffset(520, 320),
    })
    local Button = Instance.new("TextButton", {
        Parent = Window,
        Text = "Say hello",
        Size = UDim2.fromOffset(180, 44),
        Position = UDim2.fromOffset(24, 24),
    })
    Button.Activated:Connect(function()
        Button.Text = "Hello, world!"
    end)
    Window.Visible = true
    

    Build something you can click.

    Start with a window and a button. Grow it into an app with screens, shared state and reusable components.
    Windows SDK 0.1.0-preview.2 · Early and unsignedDownload & release notes ↗

    LUI is an application framework for Luau. Describe your interface with Instances, properties and events. LUI handles layout and lifetime; a native host displays your app.

    local Window = Instance.new("Window", {
    Title = "Hello, LUI",
    Size = UDim2.fromOffset(520, 320),
    })
    local Button = Instance.new("TextButton", {
    Parent = Window,
    Text = "Say hello",
    Size = UDim2.fromOffset(180, 44),
    Position = UDim2.fromOffset(24, 24),
    })
    Button.Activated:Connect(function()
    Button.Text = "Hello, world!"
    end)
    Window.Visible = true

    You can start with the Windows SDK and VS Code. The SDK includes the command-line tools, native host, checker, layout inspector and editor extension. You do not need to build LUI from source to follow the tutorials.

    Suggestions and bug reports are welcome in GitHub issues. LUI is changing quickly, so pull requests and code contributions are paused for now. See the contribution guide.