Skip to main content

Slider

For draggable linear selection.

Types

SliderProps

interface SliderProps {
...BaseButtonProps--

All BaseButton properties are accepted.

Valuenumber?--

The current value of the slider (0 to 1).

Disabledboolean?--

Whether the slider is disabled.

Unitnumber?--

The step size for the slider value.

ColorColor3?--

The color of the slider.

}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "SliderProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "BaseButtonProps",
                    "desc": "All BaseButton properties are accepted."
                },
                {
                    "name": "Value",
                    "lua_type": "number?",
                    "desc": "The current value of the slider (0 to 1)."
                },
                {
                    "name": "Disabled",
                    "lua_type": "boolean?",
                    "desc": "Whether the slider is disabled."
                },
                {
                    "name": "Unit",
                    "lua_type": "number?",
                    "desc": "The step size for the slider value."
                },
                {
                    "name": "Color",
                    "lua_type": "Color3?",
                    "desc": "The color of the slider."
                }
            ],
            "source": {
                "line": 17,
                "path": "src/Components/Slider.luau"
            }
        }
    ],
    "name": "Slider",
    "desc": "For draggable linear selection.",
    "source": {
        "line": 6,
        "path": "src/Components/Slider.luau"
    }
}