components

Avatar

A circular image or initials fallback. Not polymorphic — always inline, same reasoning as Badge.

tsx
AL
<Avatar />

Examples

With an image, alt is required — same reasoning as everywhere else in this system an image carries meaning:

tsx
Ada Lovelace
<Avatar src={user.photoUrl} alt={user.name} />

Without an image (no photo on file, or it failed to load), pass name alone and the component derives initials from it — there's no separate initials prop to keep in sync with the real name:

tsx
AL
<Avatar name={user.name} />

The two forms are mutually exclusive at the type level: passing both src and no alt (or vice versa) is a compile error, not a runtime fallback.

Props

No prop reference available for this component.