Skip to main content

NumberSpinner

Useful for number counters.

info

This currently only supports the legacy Font property. Passing in a FontFace will not do anything.

Types

NumberSpinnerProps

interface NumberSpinnerProps {
...TextProps
ValueFusion.UsedAs<number>?
PrefixFusion.UsedAs<string>?
SuffixFusion.UsedAs<string>?
DecimalsFusion.UsedAs<boolean>?
DurationFusion.UsedAs<number>?
CommasFusion.UsedAs<boolean>?
}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "NumberSpinnerProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "TextProps",
                    "desc": ""
                },
                {
                    "name": "Value",
                    "lua_type": "Fusion.UsedAs<number>?",
                    "desc": ""
                },
                {
                    "name": "Prefix",
                    "lua_type": "Fusion.UsedAs<string>?",
                    "desc": ""
                },
                {
                    "name": "Suffix",
                    "lua_type": "Fusion.UsedAs<string>?",
                    "desc": ""
                },
                {
                    "name": "Decimals",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                },
                {
                    "name": "Duration",
                    "lua_type": "Fusion.UsedAs<number>?",
                    "desc": ""
                },
                {
                    "name": "Commas",
                    "lua_type": "Fusion.UsedAs<boolean>?",
                    "desc": ""
                }
            ],
            "source": {
                "line": 47,
                "path": "src/Components/NumberSpinner/init.luau"
            }
        }
    ],
    "name": "NumberSpinner",
    "desc": "Useful for number counters.\n\n:::info\nThis currently only supports the legacy [`Font`](https://create.roblox.com/docs/reference/engine/classes/TextLabel#Font) property. Passing in a [`FontFace`](https://create.roblox.com/docs/reference/engine/classes/TextLabel#FontFace) will not do anything.\n:::",
    "source": {
        "line": 10,
        "path": "src/Components/NumberSpinner/init.luau"
    }
}