@nrbx/react-builders
v19.0.0
Published
Discord.js-style component builders for constructing Roblox React UI trees with method chaining and serializable output
Readme
@nrbx/react-builders
Builder-style component construction and serialization for Roblox React.
Installation
npm install @nrbx/react-buildersUsage
import { Frame, TextLabel } from "@nrbx/react-builders";
const element = Frame({ Size: new UDim2(1, 0, 1, 0) })
.addChild(TextLabel({ Text: "Hello" }))
.build();Builders
Provides builder classes for common Roblox instances: Frame, TextLabel, TextButton, TextBox, ImageLabel, ImageButton, ScrollingFrame, CanvasGroup, ViewportFrame, and layout/constraint instances such as UIListLayout, UIGridLayout, UIPadding, UICorner, UIStroke, UIGradient, and UISizeConstraint.
Also exports resolveClassName, resolveColor, and the BaseBuilder class for extending the system.
Built with roblox-ts
