Skip to content

co-avatar

This content is not available in your language yet.

Ver código
<co-avatar type="text" text="JD" size="sm"></co-avatar>
<co-avatar type="text" text="AB" size="md"></co-avatar>
<co-avatar type="text" text="PR" size="lg"></co-avatar>

Props

PropAtributoTipoDefaultDescripción
colorcolorstring | undefinedCustom background color (hex or CSS value)
iconiconstring'user'Phosphor icon name (type="icon"), defaults to "user"
iconWeighticon-weight"bold" | "duotone" | "fill" | "light" | "regular" | "thin"'regular'Icon weight
shapeshape"circle" | "square"'circle'Shape of the avatar
sizesize"lg" | "md" | "sm" | "xl" | "xs" | "xxs"'md'Size of the avatar
texttextstring | undefinedInitials or short text (type="text")
typetype"icon" | "text"'text'Display type: text shows initials, icon shows a Phosphor icon

Eventos

Este componente no emite eventos personalizados.

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(avatar)

CSS Custom Properties

Este componente no expone CSS custom properties.