Avatar

A round image with initials, or a user icon, as the fallback.

Installation

bash
shellui-native add avatar

Platforms: MAUI · Avalonia. Also installs icon.

Usage

Basic

Rendered with ShellUI for Blazor
ShellUI SS ShellIcons SS ShellUI Native
<ui:Avatar Source="shellui.png" Fallback="SU" />
<ui:Avatar Fallback="SS" />
<ui:Avatar Source="shellicons.png" Fallback="SI" Size="Sm" />
<ui:Avatar Fallback="SS" Size="Lg" />
<ui:Avatar Source="shellui_native.png" Fallback="SN" Size="Xl" />
Avalonia, running in your browser

MAUI and Avalonia

Source is an ImageSource on MAUI (an image in Resources/Images) and an IImage on Avalonia (a resource path such as /Assets/profile.png).

API

Property Type Default Description
Source ImageSource (MAUI) · IImage? (Avalonia) null Image to show.
Fallback string — Initials shown when there's no image; empty shows a user icon.
Size AvatarSize Default Size preset. One of Sm, Default, Lg, Xl.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.