/react-hash-avatar

React hash avatar algorithm

Primary LanguageJavaScriptMIT LicenseMIT

react-hash-avatar Build Status

React hash avatar algorithm

Install

$ yarn add react-hash-avatar

Usage

import ReactHashAvatar from 'react-hash-avatar'

export default () => <ReactHashAvatar name="unique-name" width="30px" height="30px" />

API

Props

name

Type: string
Required

Unique name

height

Type: string
Required

The component height

width

Type: string
Required

The component width

radius

Type: string
Default: 0

The component radius

Demo

Related

License

MIT © Bu Kinoshita

Thanks to rauchg