Image URL. When omitted, or when the image fails to load, the fallback
renders instead. The Avatar tracks the load failure internally; you don't
have to manage it.
Required when there is no src, and recommended even when there is —
it's the accessibility label and the source of fallback initials.
Initials are derived from the first letters of up to two name parts:
"Ada Lovelace" → "AL", "Madonna" → "M".
Custom fallback content shown when no `src` is provided or the image
fails to load. When omitted, initials derived from `name` render; if
`name` is also missing, a neutral placeholder shows.
name
string
—
Person/entity name. Used to derive initials for the fallback (first
letter of the first word + first letter of the last word, up to 2
characters). Also becomes the `alt` text on the image — set this
even when `src` loads cleanly.
size
enum
md
Visual size. Maps to a fixed pixel diameter.
@defaultValue 'md'
src
string
—
Image URL. When omitted or the load fails, the fallback renders instead.