An open API service indexing awesome lists of open source software.

https://github.com/bukinoshita/react-hash-avatar

React hash avatar algorithm
https://github.com/bukinoshita/react-hash-avatar

avatar gradient hash javascript nodejs svg

Last synced: 7 months ago
JSON representation

React hash avatar algorithm

Awesome Lists containing this project

README

          

# react-hash-avatar [![Build Status](https://travis-ci.org/bukinoshita/react-hash-avatar.svg?branch=master)](https://travis-ci.org/bukinoshita/react-hash-avatar)

> React hash avatar algorithm

## Install

```
$ yarn add react-hash-avatar
```

## Usage

```js
import ReactHashAvatar from 'react-hash-avatar'

export default () =>
```

## 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

![](https://media.giphy.com/media/3og0IAXrjGYpBG4SJy/giphy.gif)

## Related

- [hash-avatar](https://github.com/bukinoshita/hash-avatar) — :rainbow: Hash avatar algorithm

## License

[MIT](https://github.com/bukinoshita/react-cookies/blob/master/license) © Bu Kinoshita

Thanks to [rauchg](https://twitter.com/rauchg)