Skip to main content

Button

A robust button component, supporting text and icons, and multiple variants.

Types

ButtonProps

interface ButtonProps {
...BaseProps
DisabledFusion.UsedAs<boolean>?
ContentFusion.UsedAs<{string}>?
StyleFusion.UsedAs<string>?
ColorFusion.UsedAs<Color3>?
ContentColorFusion.UsedAs<Color3>?
ContentSizeFusion.UsedAs<number>?
ContentWrappedFusion.UsedAs<boolean>?
SizeVariantFusion.UsedAs<"ExtraSmall" | "Small" | "Medium" | "Large" | "ExtraLarge">?
IsHoldingFusion.UsedAs<boolean>?
}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "ButtonProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "BaseProps",
                    "desc": ""
                },
                {
                    "name": "Disabled",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "Content",
                    "lua_type": "Fusion.UsedAs<{ string }>?",
                    "desc": ""
                },
                {
                    "name": "Style",
                    "lua_type": "Fusion.UsedAs<string>?",
                    "desc": ""
                },
                {
                    "name": "Color",
                    "lua_type": "Fusion.UsedAs<Color3>?",
                    "desc": ""
                },
                {
                    "name": "ContentColor",
                    "lua_type": "Fusion.UsedAs<Color3>?",
                    "desc": ""
                },
                {
                    "name": "ContentSize",
                    "lua_type": "Fusion.UsedAs<number>?",
                    "desc": ""
                },
                {
                    "name": "ContentWrapped",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "SizeVariant",
                    "lua_type": "Fusion.UsedAs<\"ExtraSmall\" | \"Small\" | \"Medium\" | \"Large\" | \"ExtraLarge\">?",
                    "desc": ""
                },
                {
                    "name": "IsHolding",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                }
            ],
            "source": {
                "line": 54,
                "path": "src/Components/Button.luau"
            }
        }
    ],
    "name": "Button",
    "desc": "A robust button component, supporting text and icons, and multiple variants.",
    "source": {
        "line": 6,
        "path": "src/Components/Button.luau"
    }
}