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