Skip to main content

Avatar

Useful for displaying player headshots and profile pictures. And optionally, user status.

Types

AvatarProps

interface AvatarProps {
...ImageProps--

All Image properties are accepted.

Imagestring?--

The image to display in the avatar.

RingEnabledboolean?--

Whether the ring around the avatar is enabled.

RingColorColor3?--

The color of the ring around the avatar.

RingThicknessnumber?--

The thickness of the ring around the avatar.

IndicatorEnabledboolean?--

Whether the indicator is enabled.

IndicatorColorColor3?--

The color of the indicator.

IndicatorIconstring?--

The icon to display in the indicator.

IndicatorIconColorColor3?--

The color of the indicator icon.

IndicatorCornerRadiusUDim?--

The corner radius of the indicator.

}
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "AvatarProps",
            "desc": "",
            "fields": [
                {
                    "name": "...",
                    "lua_type": "ImageProps",
                    "desc": "All Image properties are accepted."
                },
                {
                    "name": "Image",
                    "lua_type": "string?",
                    "desc": "The image to display in the avatar."
                },
                {
                    "name": "RingEnabled",
                    "lua_type": "boolean?",
                    "desc": "Whether the ring around the avatar is enabled."
                },
                {
                    "name": "RingColor",
                    "lua_type": "Color3?",
                    "desc": "The color of the ring around the avatar."
                },
                {
                    "name": "RingThickness",
                    "lua_type": "number?",
                    "desc": "The thickness of the ring around the avatar."
                },
                {
                    "name": "IndicatorEnabled",
                    "lua_type": "boolean?",
                    "desc": "Whether the indicator is enabled."
                },
                {
                    "name": "IndicatorColor",
                    "lua_type": "Color3?",
                    "desc": "The color of the indicator."
                },
                {
                    "name": "IndicatorIcon",
                    "lua_type": "string?",
                    "desc": "The icon to display in the indicator."
                },
                {
                    "name": "IndicatorIconColor",
                    "lua_type": "Color3?",
                    "desc": "The color of the indicator icon."
                },
                {
                    "name": "IndicatorCornerRadius",
                    "lua_type": "UDim?",
                    "desc": "The corner radius of the indicator."
                }
            ],
            "source": {
                "line": 22,
                "path": "src/Components/Avatar.luau"
            }
        }
    ],
    "name": "Avatar",
    "desc": "Useful for displaying player headshots and profile pictures. And optionally, user status.",
    "source": {
        "line": 6,
        "path": "src/Components/Avatar.luau"
    }
}