Skip to main content

Scroller

For making Content scrollable. Equivalent to Roblox's Scroller instance.

Types

ScrollerProps

interface ScrollerProps {
...BaseProps--

All Base properties are accepted.

AutomaticCanvasSizeEnum.AutomaticSize?--

Determines whether the canvas size is automatically adjusted.

BottomImagestring?--

The image used for the bottom scroll bar.

CanvasPositionVector2?--

The position of the canvas.

CanvasSizeUDim2?--

The size of the canvas.

ElasticBehaviorEnum.ElasticBehavior?--

Determines the elastic behavior of the scrolling frame.

HorizontalScrollBarInsetEnum.ScrollBarInset?--

Determines the inset behavior of the horizontal scroll bar.

MidImagestring?--

The image used for the middle scroll bar.

ScrollBarImageColor3Color3?--

The color of the scroll bar image.

ScrollBarImageTransparencynumber?--

The transparency of the scroll bar image.

ScrollBarThicknessnumber?--

The thickness of the scroll bar.

ScrollingDirectionEnum.ScrollingDirection?--

The direction in which scrolling is allowed.

ScrollingEnabledboolean?--

Determines whether scrolling is enabled.

TopImagestring?--

The image used for the top scroll bar.

VerticalScrollBarInsetEnum.ScrollBarInset?--

Determines the inset behavior of the vertical scroll bar.

VerticalScrollBarPositionEnum.VerticalScrollBarPosition?--

Determines the position of the vertical scroll bar.

}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "ScrollerProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "BaseProps",
                    "desc": "All Base properties are accepted."
                },
                {
                    "name": "AutomaticCanvasSize",
                    "lua_type": "Enum.AutomaticSize?",
                    "desc": "Determines whether the canvas size is automatically adjusted."
                },
                {
                    "name": "BottomImage",
                    "lua_type": "string?",
                    "desc": "The image used for the bottom scroll bar."
                },
                {
                    "name": "CanvasPosition",
                    "lua_type": "Vector2?",
                    "desc": "The position of the canvas."
                },
                {
                    "name": "CanvasSize",
                    "lua_type": "UDim2?",
                    "desc": "The size of the canvas."
                },
                {
                    "name": "ElasticBehavior",
                    "lua_type": "Enum.ElasticBehavior?",
                    "desc": "Determines the elastic behavior of the scrolling frame."
                },
                {
                    "name": "HorizontalScrollBarInset",
                    "lua_type": "Enum.ScrollBarInset?",
                    "desc": "Determines the inset behavior of the horizontal scroll bar."
                },
                {
                    "name": "MidImage",
                    "lua_type": "string?",
                    "desc": "The image used for the middle scroll bar."
                },
                {
                    "name": "ScrollBarImageColor3",
                    "lua_type": "Color3?",
                    "desc": "The color of the scroll bar image."
                },
                {
                    "name": "ScrollBarImageTransparency",
                    "lua_type": "number?",
                    "desc": "The transparency of the scroll bar image."
                },
                {
                    "name": "ScrollBarThickness",
                    "lua_type": "number?",
                    "desc": "The thickness of the scroll bar."
                },
                {
                    "name": "ScrollingDirection",
                    "lua_type": "Enum.ScrollingDirection?",
                    "desc": "The direction in which scrolling is allowed."
                },
                {
                    "name": "ScrollingEnabled",
                    "lua_type": "boolean?",
                    "desc": "Determines whether scrolling is enabled."
                },
                {
                    "name": "TopImage",
                    "lua_type": "string?",
                    "desc": "The image used for the top scroll bar."
                },
                {
                    "name": "VerticalScrollBarInset",
                    "lua_type": "Enum.ScrollBarInset?",
                    "desc": "Determines the inset behavior of the vertical scroll bar."
                },
                {
                    "name": "VerticalScrollBarPosition",
                    "lua_type": "Enum.VerticalScrollBarPosition?",
                    "desc": "Determines the position of the vertical scroll bar."
                }
            ],
            "source": {
                "line": 28,
                "path": "src/Components/Scroller.luau"
            }
        }
    ],
    "name": "Scroller",
    "desc": "For making Content scrollable. Equivalent to Roblox's `Scroller` instance.",
    "source": {
        "line": 6,
        "path": "src/Components/Scroller.luau"
    }
}