DSNiemeyer
Language

Avatar

Visual user representation with image or initials.

Sizes

sm (24px) / default (32px) / lg (40px)

243240

With initials

JDASMRCL

With image

UUUU

With status

JDASMR

Avatar group

UUU
+3

API (from shadcn + Radix)

Component / propTypeDefaultDescription
Avatar / size"default" | "sm" | "lg"defaultControls circle size; matches Niemeyer shadcn preset.
Avatar / classNamestringMerged on the root.
AvatarImage / srcstring
AvatarImage / altstring
AvatarImage / classNamestringAll Radix Avatar Image props (and rest) are forwarded.
AvatarFallback / classNamestringAll Radix Avatar Fallback props are forwarded.
AvatarBadge / classNamestringe.g. status color; can wrap an icon or stay empty for a dot.
AvatarGroup / classNamestring
AvatarGroupCount / classNamestringText or an icon (e.g. +3) as children; optional `className` for styling.
… (Radix)variesSee full Radix Avatar primitive for Image/Fallback delay and other options.

Full shadcn composition, examples, and field tables: shadcn/ui — Avatar (Radix)