Frame
A basic container. Maps to Roblox Frame.
luau
PeanutUI.Frame {
size = PeanutUI.Size(200, 200),
backgroundColor = Color3.fromRGB(30, 30, 30),
}Properties
Frame uses the shared widget properties with no additions.
Events
Frame uses the shared widget events with no additions.
Example
luau
PeanutUI.Frame(
{
size = PeanutUI.Size(200, 200),
backgroundColor = Color3.fromRGB(30, 30, 30),
cornerRadius = { all = PeanutUI.Unit(12) },
padding = { all = PeanutUI.Unit(16) },
},
{
PeanutUI.TextLabel { text = "Hello" }
}
)