JSPM

@vaadin/vaadin-avatar

22.0.0-alpha5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7096
  • Score
    100M100P100Q139190F
  • License Apache-2.0

vaadin-avatar

Package Exports

  • @vaadin/vaadin-avatar
  • @vaadin/vaadin-avatar/src/vaadin-avatar.js
  • @vaadin/vaadin-avatar/theme/lumo/vaadin-avatar-styles.js
  • @vaadin/vaadin-avatar/theme/lumo/vaadin-avatar.js
  • @vaadin/vaadin-avatar/theme/material/vaadin-avatar-styles.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vaadin/vaadin-avatar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

<vaadin-avatar>

<vaadin-avatar> is a Web Component providing avatar displaying functionality.

Live Demo ↗ | API documentation ↗

npm version Published on Vaadin Directory Discord

<vaadin-avatar></vaadin-avatar>
<vaadin-avatar name="Jens Jansson"></vaadin-avatar>
<vaadin-avatar abbr="SK"></vaadin-avatar>
<vaadin-avatar-group max="2"></vaadin-avatar-group>
<script>
  document.querySelector('vaadin-avatar-group').items = [
    { name: 'Foo Bar', colorIndex: 1 },
    { colorIndex: 2 },
    { name: 'Foo Bar', colorIndex: 3 }
  ];
</script>

Screenshot of vaadin-avatar

Installation

Install vaadin-avatar:

npm i @vaadin/vaadin-avatar --save

Once installed, import it in your application:

import '@vaadin/vaadin-avatar/vaadin-avatar.js';
import '@vaadin/vaadin-avatar/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 components with the Lumo theme:

    theme/lumo/vaadin-avatar.js theme/lumo/vaadin-avatar-group.js

  • The components with the Material theme:

    theme/material/vaadin-avatar.js theme/material/vaadin-avatar-group.js

  • Alias for theme/lumo/vaadin-avatar.js theme/lumo/vaadin-avatar-group.js:

    vaadin-avatar.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.