Skip to content

luizeduard0/reax-avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reax Avatar

Avatar component for React that displays an avatar with initials based on user's name.

npm version

PropTypes

{
  name: React.PropTypes.string.isRequired,
  width: React.PropTypes.number,
  height: React.PropTypes.number
}

Usage

npm install --save reax-avatar
import React from 'react';
import Avatar from 'reax-avatar';

const Foo = () => (
  <Avatar name="Bar" />
);

export default Foo;