Avatar

User avatar with image, initials fallback, status badge and overlapping groups

View documentation

Image with initials fallback

Pass src and name for the shortcut form. name derives the initials, initials overrides them, and fallback replaces them with arbitrary content.

Dina Maia DM AL EM ?

Sizes & shapes

size takes sm, the default, or lg; shape takes the default circle or square.

AL AL AL AL AL

Composition

Full control via avatar.image + avatar.fallback, for when the shortcut props are not enough.

Ada Lovelace AL

Badges

avatar.badge defaults to a presence dot at bottom-end. position moves it and the slot replaces the dot with an icon or a count.

Dina Maia DM Dina Maia DM DM 3

Groups

avatar.group overlaps its children and avatar.group-count closes the stack with an overflow marker.

Ana Silva AS Dina Maia DM Joao Lima JL KP +3