Identity

Avatar

One fixed box for a person or entity: image, derived initials, or icon — never a shifting layout.

Playground

Configure the component and copy synchronized Vue code.

Interactive preview

Changes are reflected in the example and source.

Properties

Size

Shape

Variant

Content

Vue

<m-avatar
  name="Ada Lovelace"
/>

Token map

The manual manifest combines inherited token owners with local deltas.

MAvatar · All22 tokens
md-avatar

MAvatar API

Props, slots, and events are generated from the current public kit contract.

MAvatar

Utility family
src/runtime/components/ui/avatar

Props

NameTypeDefault
sizeComponent size on the shared small, medium, and large scale.
'sm' | 'md' | 'lg''md'
srcImage source. An empty or failing source enters the fallback pipeline.
stringundefined
altAlternative text of the image. A non-empty string names the image; `''` marks it decorative; omitting it lets `name` label the avatar root.
stringundefined
nameDisplay name used for derived initials and the accessible label.
stringundefined
iconExplicit fallback icon, used when no initials can be derived.
stringundefined
shapeMD3 corner shape.
Extract<MShape, 'full' | 'large' | 'medium' | 'small'>'full'
variantMD3 surface preset.
'tonal' | 'filled' | 'outlined''tonal'

Slots

Events

@loadEvent
@errorEvent