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.
Token map
The manual manifest combines inherited token owners with local deltas.
MAvatar · All22 tokens
md-avatarMAvatar API
Props, slots, and events are generated from the current public kit contract.
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.stringundefinedaltAlternative text of the image. A non-empty string names the image; `''` marks it decorative; omitting it lets `name` label the avatar root.stringundefinednameDisplay name used for derived initials and the accessible label.stringundefinediconExplicit fallback icon, used when no initials can be derived.stringundefinedshapeMD3 corner shape.Extract<MShape, 'full' | 'large' | 'medium' | 'small'>'full'variantMD3 surface preset.'tonal' | 'filled' | 'outlined''tonal'Slots
Events
@loadEvent@errorEvent