Skip to content

ScrollingFrame ​

A scrollable container. Maps to Roblox ScrollingFrame.

luau
PeanutUI.ScrollingFrame {
    canvasSize = PeanutUI.Size(0, 0, 1, 2),
}

Properties ​

In addition to the shared widget properties:

PropertyTypeDescription
canvasPositionVector2Scroll position.
canvasSizeSizeSize of the scrollable canvas.
automaticCanvasSizeEnum.AutomaticSizeAutomatic canvas sizing.
scrollingDirectionEnum.ScrollingDirectionAllowed scroll axes.
scrollingEnabledbooleanWhether scrolling is enabled.
scrollBarImageColorColor3Scrollbar color.
scrollBarImageTransparencynumberScrollbar transparency.
scrollBarThicknessnumberScrollbar thickness.
verticalScrollBarInsetEnum.ScrollBarInsetVertical inset.
horizontalScrollBarInsetEnum.ScrollBarInsetHorizontal inset.
elasticBehaviorEnum.ElasticBehaviorElastic scroll behavior.

Events ​

ScrollingFrame uses the shared widget events with no additions.