Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 4.75 KB

README.md

File metadata and controls

44 lines (32 loc) · 4.75 KB

lumin/ui

package npm build discord

An unrivaled UI framework for Roblox.

Prerequisites

In order to use lumin/ui you must have the following dependencies installed:

Usage

This usage example will create a new TextButton in a ScreenGui with an Activated event.

local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer

local UI = require(path.to.UI)
local New = UI.New
local Event = UI.Event

View {
    New "TextButton" {
        AnchorPoint = Vector2.new(0.5, 0.5),
        Position = UDim2.fromScale(0.5, 0.5),
        Size = UDim2.fromOffset(100, 100),
        ZIndex = 1,
        Event("Activated", function()
            print("Button clicked!")
        end),
    }
}

License

This project is licensed under the MIT license