Skip to content

co-avatar-group

This content is not available in your language yet.

Apila varios co-avatar superpuestos y colapsa el excedente en una insignia «+N» según max. Los avatares se definen con la propiedad items (array de descriptores); size y shape se propagan a cada uno.

Ver código
<co-avatar-group size="sm" max="4" items='[{"type":"text","text":"SF","color":"#02A270"},{"type":"text","text":"AA","color":"#2563EB"},{"type":"text","text":"DA","color":"#F32A73"}]'></co-avatar-group>

Props

PropAtributoTipoDefaultDescripción
interactiveinteractivebooleanfalseMake the whole group a focusable button (role=button, keyboard, coClick).
itemsCoAvatarGroupItem[][]Avatar descriptors rendered as an overlapping stack.
labellabelstring | undefinedAccessible label override; when absent it's composed from the items' names.
maxmaxnumber4Max avatars shown before the remainder collapses into a "+N" badge. `0` = show all.
shapeshape"circle" | "square"'circle'Shape forwarded to every avatar that doesn't set its own.
sizesize"lg" | "md" | "sm" | "xl" | "xs" | "xxs"'xs'Size forwarded to every avatar (and the overflow badge).

Eventos

EventoDetailBubblesCancelableDescripción
coClickvoidEmitted on click / Enter / Space when `interactive`. Does NOT bubble.

Slots

Este componente no expone slots.

CSS Parts

Este componente no expone CSS parts.

CSS Custom Properties

Este componente no expone CSS custom properties.