react-byte-avatar
v1.0.0
Published
Simple React component to display a uniq avatar from user name
Downloads
2
Readme
react-byte-avatar
Simple React component to display a uniq 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 | | ------ | :--------: | -----: | | nick | required | string | | width | 18 | number | | height | 14 | number |
Demo
Example
import { Avatar } from "react-byte-avatar";
const App = () => {
return (
<div>
<Avatar name="React" />
</div>
);
};