Skip to content

Avatar

Identify a person with a photograph or initials.

alpina-ui/ui/avatar

Interactive preview

Nora Keller
Archivist

Usage notes

Provide the person’s name even when supplying a photo. If the image fails, initials include complete accented letters where the browser supports grapheme segmentation.

When to use

Identify a sender or account visually when a portrait or initials aid recognition.

When to avoid

A photo by itself cannot distinguish homonyms or identify someone in a consequential approval step.

Accessibility

Provide the person's name. Mark the avatar decorative if the adjacent name already identifies the same person.

Keys
KeyAction
—Read in document order. The component has no keyboard command of its own.

Content

Use the name the person supplies, including accents. Translate the role or team next to it and allow long names to wrap.

Use
Anna Caduff · Secretariat
Avoid
AC

Copy in four languages

German
Sekretariat11 characters
French
Secrétariat11 characters
Italian
Segreteria10 characters
Romansh
Secretariat11 characters
Add to your project
npx --no-install alpina add avatar