react-byte-avatar
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

demo screenshot

Example

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

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

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i react-byte-avatar

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.07 kB

    Total Files

    13

    Last publish

    Collaborators

    • skorotkiewicz