ngx-eb-avatar is a lightweight avatar generator component.
Check out the link for a live demo.
npm install --save ngx-eb-avatar
Import the main moduel:
import { NgxEbAvatarModule } from 'ngx-eb-avatar';
Add the following to your template:
<ngx-eb-avatar name="Your Name"
[shadow]="true"
width="50"
height="50"
bgColor="337ab7"
fontColor="FFFFFF">
</ngx-eb-avatar>
option | type |
---|---|
name | string |
shadow | boolean |
width | number |
height | number |
bgColor | string |
fontColor | string |
bgColor and fontColor use HTML Hex color codes with the # sign.