Accessibility
Avatar from @prepared911/ui-core renders a person or entity as an image, initials, or an icon. The component handles fallback swapping and decorative markup; your job is to decide whether the avatar carries information (name a person) or is decoration (already labeled nearby), and to provide an accessible name for interactive variants.
src or failed loads automatically fall back to initials or an icon.getInitials generates initials from a name.alt. When the avatar conveys identity on its own (list of members, unread badge for one person), set alt to the person's full name. When the person's name appears adjacent to the avatar, set alt="" so the same name isn't read twice. See W3C WAI: An alt Decision Tree.aria-label that describes the action, not just the person.inverted or an appropriate color mode on dark or colored backgrounds so initials and icons meet 4.5:1 contrast.Button, IconButton, or link—don't reinvent keyboard handling with tabIndex and onKeyDown.alt="" (or as decorative CSS backgrounds).alt.alt="" keeps the rotor from reading the same name twice.