0.1.1 • Published 7 years ago
ngx-eb-avatar v0.1.1
ngx-eb-avatar
ngx-eb-avatar is a lightweight avatar generator component.
Demo
Check out the link for a live demo.
Install
npm install --save ngx-eb-avatarUsage
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>Configuration
| 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.