Skip to content

nebulal0l/ui.dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

ui.dev

A modern, lightweight UI library for Roblox that simplifies interface development with clean components and intuitive APIs.

✨ Features

  • Custom Tabs - Create multiple organized tabs
  • Buttons - Clickable buttons with hover effects
  • Toggles - On/off switches with callbacks
  • Sliders - Value sliders with min/max ranges
  • Input Fields - Text input boxes
  • Labels - Text display elements
  • Title Customization - Change window titles
  • Draggable Windows - Drag to move around
  • Smooth Animations - TweenService integration
  • Modern Design - Dark theme with rounded corners

🚀 Quick Start

Installation

Basic Usage

-- 

local uidev = loadstring(game:HttpGet("https://raw.githubusercontent.com/nebulal0l/ui.dev/refs/heads/main/ui.dev.lua?v=" .. tick()))() -- Load the latest library version

local UI = uidev:CreateWindow({ 
   Title = "ui.dev example",
   Size = UDim2.new(0, 500, 0, 350),
   Draggable = true
}) -- create the window

-- Create tabs
local MainTab = UI:CreateTab({
   Name = "Main",
   Icon = ""
}) -- this is required to create a tab.

local SettingsTab = UI:CreateTab({
   Name = "Settings", 
   Icon = "🔧"
})

local ExtraTab = UI:CreateTab({
   Name = "Extra", 
   Icon = "🔰"
})


-- Add elements to MainTab
MainTab:AddButton({
   Name = "Button",
   Callback = function()
       print("Button clicked!")
   end
})

MainTab:AddToggle({
   Name = "Toggle",
   Default = false,
   Callback = function(value)
       print("Toggle: " .. tostring(value))
   end
})

MainTab:AddSlider({
   Name = "Walk Speed",
   Min = 16,
   Max = 100,
   Default = 16,
   Callback = function(value)
       game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
   end
})

MainTab:AddSlider({
    Name = "Jump Power",
    Min = 50,
    Max = 100,
    Default = 50,
    Callback = function(value)
        game.Players.LocalPlayer.Character.Humanoid.JumpPower = value
    end
 })

MainTab:AddInput({
   Name = "Input",
   Placeholder = "Enter text...",
   Callback = function(text)
       print("Input: " .. text)
   end
})

MainTab:AddLabel({
   Text = "Status: Ready",
   Color = Color3.fromRGB(46, 204, 113)
})

-- Add elements to SettingsTab
SettingsTab:AddInput({
    Name = "Change the title.",
    Placeholder = "Enter text...",
    Callback = function(text)
        UI:SetTitle(text)
    end
 })

SettingsTab:AddButton({
   Name = "Destory Library",
   Callback = function()
       UI:Destroy()
   end
})

ExtraTab:AddButton({
   Name = "Infinite Yield",
   Callback = function()
loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
   end
})

🎨 Customization Options

Window Options

  • Title - Window title text
  • Size - Window dimensions (UDim2)
  • Draggable - Enable/disable dragging (boolean)

Tab Options

  • Name - Tab display name
  • Icon - Emoji or symbol for tab

Element Methods

  • Tab:AddButton({Name, Callback})
  • Tab:AddToggle({Name, Default, Callback})
  • Tab:AddSlider({Name, Min, Max, Default, Callback})
  • Tab:AddInput({Name, Placeholder, Callback})
  • Tab:AddLabel({Text, Color})

📖 API Documentation

Creating a Window

local UILibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/nebulal0l/ui.dev/refs/heads/main/ui.dev.lua"))()

local UI = UILibrary:CreateWindow({
    Title = "Window Title",
    Size = UDim2.new(0, 600, 0, 400),
    Draggable = true -- Optional, defaults to true
})

Creating Tabs

local MainTab = UI:CreateTab({
    Name = "Tab Name",
    Icon = "🎮" -- Optional emoji or symbol
})

Adding Elements

Button

MainTab:AddButton({
    Name = "Button Text",
    Callback = function()
        print("Button was clicked!")
    end
})

Toggle

MainTab:AddToggle({
    Name = "Toggle Name",
    Default = false, -- Starting state
    Callback = function(value)
        print("Toggle is now:", value)
    end
})

Slider

MainTab:AddSlider({
    Name = "Slider Name",
    Min = 0,
    Max = 100,
    Default = 50,
    Callback = function(value)
        print("Slider value:", value)
    end
})

Input Field

MainTab:AddInput({
    Name = "Input Name",
    Placeholder = "Enter text here...",
    Callback = function(text)
        print("Input text:", text)
    end
})

Label

MainTab:AddLabel({
    Text = "Label Text",
    Color = Color3.fromRGB(255, 255, 255) -- Optional
})

About

ui.dev roblox ui lib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages