Start typing to search packages!
cascade
By @biggaboy212
Roblox
Mirrored[image: Cascade span dark] [image: Cascade span light]
Cascade is a LuaU UI library based on macOS Sequoia.
[image: Cascade]
The Pitch
Cascade is a retained-mode, user-centric UI library designed to be both easy for developers and beautiful for users. Its API is fully typed, so once you learn one component, you can use 99% of the rest without needing to reference the documentation.
Cascade was designed from the ground up as a superior design paradigm. It combines simplicity and customizability into a high level bloat-free API, enabling developers to build polished software-grade UIs in minutes.
Usage
Importing the library
From source
To use cascade from source, simply clone the repository into your packages folder and you can reference src/init.luau from there.
From release
You can download a valid release from our github releases page, or in single-file systems, you can load it dynamically in-game:
local function import(owner, release, version, file)
local tag = (version == "latest" and "latest" or "download/"..version)
return loadstring(game:HttpGet(("https://github.com/%s/%s/releases/%s/%s"):format(owner, release, tag, file)), file)()
end
local cascade = import("biggaboy212", "Cascade", "v1.0.0-beta.1", "pre.luau")
Adding components
You can choose how complex to make your app, we dont bombard you with useless bloat that makes the library a borderline instance creator.
-- Create our main application.
local app = cascade.New({ Theme = cascade.Themes.Light })
do -- Make the main window
local window = app:Window({
Title = "My Window",
Subtitle = "My window",
})
do -- Make a static tab section
local section = window:Section({ Title = "Section title" })
do -- Make our main tab
local tab = section:Tab({
Selected = true,
Title = "Main",
Icon = cascade.Symbols.squareStack3dUp,
})
do
local form = tab:Form()
do -- Make the toggle
local row = form:Row()
-- You can of course add a wrapper to simplify creating page components if you only want a title stack and a component to go along.
row:Left():TitleStack({
Title = "Toggle",
Subtitle = "My toggle",
})
row:Right():Toggle()
end
do -- Make the button
local row = form:Row()
row:Left():TitleStack({
Title = "Button",
Subtitle = "My button",
})
row:Right():Button({ Label = "Click me" })
end
end
end
end
end
[image: Showcase application]
Getting started
Reference the Cascade documentation for more. (In development.)
Package Details
Install command (Click to copy)
Version
1.0.0-beta.2
License
MIT
Safe for commercial use
License identified from the packaged LICENSE file; the manifest declared none.
Automated license review — not legal advice.
