/paper-avatar-behavior

Hash string and find matching color from Material Design palette

Primary LanguageHTMLMIT LicenseMIT

Paper Avatar Behavior

Published on webcomponents.org

Calculate hash from userId and pick color from palette

API

Property Description
userId ID of the user. Used to calculate the hash.
userName Name of user. Used to get name initials.