0.0.2 • Published 5 years ago
react-hash-avatar v0.0.2
react-hash-avatar
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
- hash-avatar — :rainbow: Hash avatar algorithm
License
MIT © Bu Kinoshita
Thanks to rauchg