Skip to content

Avatar

Avatar shows a round profile picture. If there is no picture, it shows initials.

Usage

Call Components.Avatar with a scope and a table of properties:

C.Avatar(scope, {
    Initials = "EU",
    AvatarSize = 48,
})

Properties

Name Type Required Default Description
Theme ThemeRef ❌ The contextual theme Theme to use for this component instead of the one from Theme.Provide.
LayoutOrder UsedAs<number> ❌ 0 Position in a parent UIListLayout or UIGridLayout.
Size UsedAs<UDim2> ❌ - Size of the component.
Image string ❌ - Asset ID of the picture. If you set it, the initials are hidden.
Initials string ❌ "?" Text to show when there is no Image.
AvatarSize number ❌ 40 Diameter, in pixels.

See also