Skip to main content

BaseButton

A barebones button component, like if Roblox had a "Button" class rather than only a TextButton.

Types

BaseButtonProps

interface BaseButtonProps {
...BaseProps
DisabledFusion.UsedAs<boolean>?
OnActivatedFusion.UsedAs<() → ()>?
OnMouseEnterFusion.UsedAs<() → ()>?
OnMouseLeaveFusion.UsedAs<() → ()>?
OnMouseButton1DownFusion.UsedAs<() → ()>?
OnMouseButton1UpFusion.UsedAs<() → ()>?
IsHoveringFusion.UsedAs<boolean>?
IsHoldingFusion.UsedAs<boolean>?
HoverSoundFusion.UsedAs<Sound>?
ClickSoundFusion.UsedAs<Sound>?
}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "BaseButtonProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "BaseProps",
                    "desc": ""
                },
                {
                    "name": "Disabled",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "OnActivated",
                    "lua_type": "Fusion.UsedAs<() -> ()>?",
                    "desc": ""
                },
                {
                    "name": "OnMouseEnter",
                    "lua_type": "Fusion.UsedAs<() -> ()>?",
                    "desc": ""
                },
                {
                    "name": "OnMouseLeave",
                    "lua_type": "Fusion.UsedAs<() -> ()>?",
                    "desc": ""
                },
                {
                    "name": "OnMouseButton1Down",
                    "lua_type": "Fusion.UsedAs<() -> ()>?",
                    "desc": ""
                },
                {
                    "name": "OnMouseButton1Up",
                    "lua_type": "Fusion.UsedAs<() -> ()>?",
                    "desc": ""
                },
                {
                    "name": "IsHovering",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "IsHolding",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "HoverSound",
                    "lua_type": "Fusion.UsedAs<Sound>?",
                    "desc": ""
                },
                {
                    "name": "ClickSound",
                    "lua_type": "Fusion.UsedAs<Sound>?",
                    "desc": ""
                }
            ],
            "source": {
                "line": 39,
                "path": "src/Components/BaseButton.luau"
            }
        }
    ],
    "name": "BaseButton",
    "desc": "A barebones button component, like if Roblox had a \"`Button`\" class rather than only a `TextButton`.",
    "source": {
        "line": 6,
        "path": "src/Components/BaseButton.luau"
    }
}