Skip to content

Simple React component to display a unique avatar from user name

Notifications You must be signed in to change notification settings

skorotkiewicz/react-byte-avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-byte-avatar

Simple React component to display a unique avatar from user name.

Inspired from this HN post: https://news.ycombinator.com/item?id=30668137

Install

yarn add react-byte-avatar
// or
npm i react-byte-avatar

Props

prop default type
name required string
width 18 number
height 14 number

Demo

demo screenshot

Example

import { Avatar } from "react-byte-avatar";

const App = () => {
  return (
    <div>
      <Avatar name="React" />
    </div>
  );
};

About

Simple React component to display a unique avatar from user name

Topics

Resources

Stars

Watchers

Forks