eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsSurfaces & display
Avatar
View source
1 min read
A person or entity marker: image, initials, or a neutral fallback, with an optional presence status.
1
using eQuantic.UI.Components;
FALLBACKS
EM
initials
no data
EM
with status
Usage
1
2
3
4
5
6
7
new Avatar("AB")
{
ImageSource = user.PhotoUrl,
Name = "Ana Beatriz",
Status = PresenceStatus.Online,
Size = SizeVariant.Medium,
}
API
Prop
Type
Default
Description
Initials
string
One or two letters, derived from the name.
ImageSource
string?
null
Preferred content; falls back to initials.
Name
string?
null
Full name — the accessible label, and the seed for the tint.
Status
PresenceStatus
None
Presence dot on the trailing-bottom corner.
Size
SizeVariant
Medium
Diameter from Sizing.
States
State
Rendering
Image
Cover-cropped
Initials
Deterministic tint from the name
Fallback
Neutral person glyph
With status
Presence dot over the edge
Accessibility
Decorative beside a visible name; otherwise named from Name. Presence is announced as text — never colour alone.
When to use
Identity in lists, headers and threads.
Avoid
Avatars as unlabelled buttons.
Stacks past five — show "+4".
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/Avatar.cs.