Skip to main content

SwitchInput

Useful for letting the user switch things on / off.

Types

SwitchInputProps

interface SwitchInputProps {
SwitchedFusion.UsedAs<boolean>?
DisabledFusion.UsedAs<boolean>?
ColorFusion.UsedAs<Color3>?
}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "SwitchInputProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "BaseButtonProps",
                    "desc": ""
                },
                {
                    "name": "Switched",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "Disabled",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "Color",
                    "lua_type": "Fusion.UsedAs<Color3>?",
                    "desc": ""
                }
            ],
            "source": {
                "line": 39,
                "path": "src/Components/SwitchInput.luau"
            }
        }
    ],
    "name": "SwitchInput",
    "desc": "Useful for letting the user switch things on / off.",
    "source": {
        "line": 6,
        "path": "src/Components/SwitchInput.luau"
    }
}