0.1.0 • Published 2 years ago

ember-boring-avatars v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ember-boring-avatars

Ember boring avatars is a tiny JavaScript Ember addon that generates custom, SVG-based avatars from any username and color palette.
NOTE: This is an Ember port of the popular Boring avatars React library.
Furthermore, at this time, it only supports the Beam variant of the original library and there is no service.
In the future, all the variants may be supported and a service added.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-boring-avatars

Usage

<Avatar
  @size={{40}}
  @name="Maria Mitchell"
  @colors={{array "#92A1C6" "#146A7C" "#F0AB3D" "#C271B4" "#C20D90"}}
/>

Attributes

AttributeType
sizenumber or string, 40px (default)
squareboolean: false (default)
titleboolean: false (default)
namestring
colorsarray of colors

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.