Avatar

GITHUB

To create user avatars use this component.


Code:

  
HTML
<!-- Normal --> <fvAvatar src="path/to/avatar.jpg" name="Amir Hashemi" /> <!-- Character Mode --> <fvAvatar name="Amir Hashemi" />

Examples:

VH
Normal
AH
.square mode
AN
This ones has unavailable src and the name of user is 'Alessandro Nesta'!
SW
Sally Wagner
LN
Lego Normal
WS
Without Src
AB
CD
EF
GH
IJ
KL

API:

NameTypeDefaultDescription
src
String
---
Avatar (image) source.
name
String
---
Name of user. Uses of characters as fallback when src image not availabe.
size
String
'32px
Size of avatar.
NameDescription
.square
Show square instead of circle.