Skip to content

Avatar list - Web Component โ€‹

The AvatarList component can be used imported from:

Playground โ€‹

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:

NameTypeDescriptionSlotA11y
profilesObject[]The profiles to display

Events โ€‹

This component has events. Check the documentation about how to use the events.

NamePayloadDescription

Slots โ€‹

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
profilesz-profileThe list of avatars to display

Parameters use โ€‹

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;

Browser support โ€‹

Detected engine: ย 

  • Chromium

  • Webkit

  • Gecko

HTML Examples โ€‹

CodeSandbox example โ€‹