<vaadin-avatar>
<vaadin-avatar-group> is a Web Component providing avatar in groups displaying functionality.
Live Demo ↗
|
API documentation ↗
<vaadin-avatar-group max-items-visible="3"></vaadin-avatar-group>
<script>
document.querySelector('vaadin-avatar-group').items = [
{ name: 'Foo Bar', colorIndex: 1 },
{ colorIndex: 2 },
{ name: 'Foo Bar', colorIndex: 3 },
{ colorIndex: 4 }
];
</script>
Installation
Install vaadin-avatar-group
:
npm i @vaadin/avatar-group --save
Once installed, import it in your application:
import '@vaadin/avatar-group/vaadin-avatar-group.js';
Getting started
Vaadin components use the Lumo theme by default.
To use the Material theme, import the correspondent file from the theme/material
folder.
Entry points
-
The component with the Lumo theme:
theme/lumo/vaadin-avatar-group.js
-
The component with the Material theme:
theme/material/vaadin-avatar-group.js
-
Alias for theme/lumo/vaadin-avatar-group.js
:
vaadin-avatar-group.js
Contributing
Read the contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
License
Apache License 2.0
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.