Skip to content

Avatar list - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

The Web component uses the <z-avatar-list> tag:

By default, all the parameters are optional or can be set in different, except for the ones marked as required

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescriptionSlot
profilesObject[]The profiles to display

The available slots for the component are:

NameTagsDescription
profilesz-profileThe list of avatars to display

profiles

The profiles attribute is used to set the list of profiles to be displayed. Each object in the list should have the following properties: initials, color and image-src if we want to insert an image.

We can use <z-profile> tags to define the values of profiles

AZ

Overflow

You can insert as many entries as you want, but we recommend a maximum of 5. If you insert more than 5 entries, we recommend to add (+xx) to the last entry. Check the guidelines here;

Playground

Customization

HTML Examples

StackBlitz example