Avatar
Thumbnail representation of a user or entity. Supports images and initials fallback with multiple sizes.
XS
SM
TB
LG
XL
Anatomy
1
TB
- 1 Container — circular shape with image or initials
Options
Sizes
XS
XS (24px)
SM
SM (32px)
MD
MD (40px)
LG
LG (48px)
XL
XL (64px)
Content types
TB
Initials
Table of options
| Property | Values | Default |
|---|---|---|
| src | image URL | — |
| alt | text | — |
| initials | 1–2 characters | — |
| size | xs / sm / md / lg / xl | md |
Accessibility
- Uses
role="img"witharia-labelfor the accessible name. - Image avatars include
alttext on the<img>element. - Initials are decorative — the
aria-labelon the container provides the accessible name.
Design checklist
All color themesWorks across light and dark modes.
Defined optionsSizes and content types documented.
Design tokensComponent-scoped tokens (
--avatar-*).