Skip to main content

Avatar

Demo

zeta-web v0.6.6
Web Components

An avatar is a visual representation of a user or entity.

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-avatar--docs

Slots

NameDescriptionType
defaultThe content of the avatar. Should be an img element, a zeta-icon, or text.text
statusThe content of the status slot. Usually used for indicators or badges.text

Attributes

NameDescriptionTypeDefault
show-ringShows the ring around the avatar.booleanfalse
show-closeShows the close icon.booleanfalse
sizeThe size of the avatar.Possible values are "xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl", "xxxl".'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | undefinedundefined

CSS Properties

NameDescription
--avatar-colorThe color of the avatar
--avatar-initials-colorThe color of the initials

Figma

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=23008-88829