Avatar
A component that displays a profile picture, initials or fallback icon for a user.
Preview

Code Example
API
AvatarVM Props
A model that defines the appearance properties for an avatar component.
Name | Type | Default | Description |
---|---|---|---|
color | ComponentColor? | nil | The color of the placeholder. |
cornerRadius | ComponentRadius | full | The corner radius of the avatar. |
imageSrc | ImageSource? | nil | The source of the image to be displayed. |
placeholder | Placeholder | .icon("avatar_placeholder") | The placeholder that is displayed if the image is not provided or fails to load. |
size | ComponentSize | medium | The predefined size of the avatar. |
SUAvatar
public init(model: AvatarVM)
UKAvatar
Initializers
public init(model: AvatarVM)
Public Properties
Name | Type | Description |
---|---|---|
model | AvatarVM | A model that defines the appearance properties. |