Skip to content

bltnico/react-user-avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-user-avatar

Install

Run npm i react-useravatar --save

alt UserAvatar demo

Props

  • username string (required)

  • size integer : Default is 100px

  • onClick function : Event when user click on avatar

  • textColor string : Username text color, default #ffffff

  • borderStyle boolean : coming soon ...

Static

  • getColor function : Get color with username, ex UserAvatar.getColor("bltnico") return 044FD1

Dev and test

Install babel by npm install

And compile with babel src --out-dir lib

Babel .babelrc use es2015 and react compiler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published