Avatar

A photo with initials as the fallback, a status badge and overlapping groups.

ALGHMHAK3 more people
ALGHMHAK3 more people
ALGHMHAK3 more people

Installation

npx yolkui add avatar

Sizes and shape

Five sizes, 24 · 32 · 40 · 48 · 64, and shape="square". name gives the initials and the accessible name.

sm · 24ALALYTYK
default · 32ALALYTYK
lg · 40ALALYTYK
xl · 48ALALYTYK
2xl · 64ALALYTYK

Fallback

A photo that fails to load ends in initials, from the name or your own text.

ATCN

Status

AvatarBadge's label is read with the name, "Ada Lovelace (Online)", so the colour is never the only signal.

ALGHMHMSAK

Notification

position="top" puts the dot at the top corner, for unread activity.

AKAKAKAKAKYT

A real photo

A notification at the top and presence at the bottom, on a photo.

YPYPYPYPYP
YPYPYPYPYPYP

In a list

When the name is printed beside it, hide the avatar from assistive technology (aria-hidden). On a card-coloured surface set --avatar-cutout.

  • Ada Lovelace

    ada@yolkui.com · online

    Owner
  • Grace Hopper

    grace@yolkui.com · away

    Editor
  • Margaret Hamilton

    margaret@yolkui.com

    Viewer