Display
Avatar <pm-avatar>
Avatar with image + initials fallback.
Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="xs"size="sm"size="md"size="lg"size="xl"Tones
Set tone on the element, or data-tone on any ancestor to tone a whole area.
tone="accent"tone="secondary"tone="neutral"tone="success"tone="warning"tone="danger"tone="info"Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
src | string | — | Image URL; falls back to initials from name if it fails to load. |
name | string | — | Full name: used for alt text and initials. |
size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | — | Size: xs, sm, md, lg or xl (md when not set). |
shape | 'circle' | 'square' | — | Outline shape. |
status | 'online' | 'away' | 'busy' | 'offline' | — | Presence dot: online, away, busy or offline (included in the accessible name). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Used in templates
Overview dashboardTraffic analyticsOrdersCustomer 360InboxTeam chatAI assistantNotificationsProject boardTeam and rolesBilling and invoicesUser profileAccount settingsSign inCreate accountTwo-step verificationForgot passwordChoose a new passwordLanding pageArticle