Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Avatar <pm-avatar>

Avatar with image + initials fallback.

Full screen

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/avatar'; </script> <pm-avatar name="Ada Lovelace" status="online"></pm-avatar> <pm-avatar name="Grace Hopper" tone="secondary" status="away"></pm-avatar> <pm-avatar name="Alan Turing" shape="square" tone="success" status="busy"></pm-avatar> <pm-avatar name="Katherine Johnson" status="offline"></pm-avatar>

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

AttributeTypeDefaultDescription
srcstring—Image URL; falls back to initials from name if it fails to load.
namestring—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