Skip to content

enniob/ngx-eb-avatar

Repository files navigation

npm version

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

Usage

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.