Skip to content

ImageLabel ​

Displays an image. Maps to Roblox ImageLabel.

luau
PeanutUI.ImageLabel {
    imageContent = "rbxassetid://123456",
    size = PeanutUI.Size(64, 64),
}

Properties ​

In addition to the shared widget properties:

PropertyTypeDescription
imageContentContentImage asset.
imageColorColor3Tint color.
imageTransparencynumberImage transparency.
resampleModeEnum.ResamplerModeResampling mode.
scaleTypeEnum.ScaleTypeHow the image scales.
sliceCenterRectNine-slice center rect.
sliceScalenumberNine-slice scale.
tileSizeSizeTile size when tiling.
imageRectOffsetVector2Source rect offset.
imageRectSizeVector2Source rect size.
isLoadedbooleanWhether the image has loaded.

Events ​

ImageLabel uses the shared widget events with no additions.