Skip to main content

TextSwap

Swap between an array values.

Types

TextSwapProps

interface TextSwapProps {
...BaseButtonProps--

All BaseButton properties are accepted.

Options{string}?--

Array of string options to swap between

Selectionnumber?--

The currently selected option index

Disabledboolean?--

Whether the TextSwap is disabled

ColorColor3?--

The color of the content

ContentSizenumber?--

The size of the content

}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "TextSwapProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "BaseButtonProps",
                    "desc": "All BaseButton properties are accepted."
                },
                {
                    "name": "Options",
                    "lua_type": "{string}?",
                    "desc": "Array of string options to swap between"
                },
                {
                    "name": "Selection",
                    "lua_type": "number?",
                    "desc": "The currently selected option index"
                },
                {
                    "name": "Disabled",
                    "lua_type": "boolean?",
                    "desc": "Whether the TextSwap is disabled"
                },
                {
                    "name": "Color",
                    "lua_type": "Color3?",
                    "desc": "The color of the content"
                },
                {
                    "name": "ContentSize",
                    "lua_type": "number?",
                    "desc": "The size of the content"
                }
            ],
            "source": {
                "line": 18,
                "path": "src/Components/TextSwap.luau"
            }
        }
    ],
    "name": "TextSwap",
    "desc": "Swap between an array values.",
    "source": {
        "line": 6,
        "path": "src/Components/TextSwap.luau"
    }
}