Skip to content
AZ
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:
Name | Type | Description | Slot | A11y |
---|---|---|---|---|
profiles | Object[] | The profiles to display |
Events
This component has events. Check the documentation about how to use the events.
Name | Payload | Description |
---|
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
profiles | z-profile | The 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
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