# react-avatr

> An avatar component built with and for ReactJS

Latest version **2.0.4** (published 2015-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-avatr
pnpm add react-avatr
yarn add react-avatr
bun add react-avatr
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2015-12-22 |
| First published | 2015-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Studio Frenetic |
| Maintainers | studiofrenetic |
| Keywords | react, react-component, avatar, avatr |

## Links

- npm: https://www.npmjs.com/package/react-avatr
- Repository: https://github.com/studiofrenetic/react-avatr
- Homepage: https://github.com/studiofrenetic/react-avatr#readme
- Issues: https://github.com/studiofrenetic/react-avatr/issues
- npm.io page: https://npm.io/package/react-avatr

## Dependencies (1)

- [md5](https://npm.io/package/md5.md) ^2.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.4 (latest) — 2015-12-22
- 2.0.3 — 2015-12-22
- 2.0.2 — 2015-11-13
- 2.0.1 — 2015-11-12
- 2.0.0 — 2015-11-12
- 1.2.0 — 2015-06-23
- 1.1.2 — 2015-06-15
- 1.1.1 — 2015-06-15
- 1.1.0 — 2015-06-15
- 1.0.0 — 2015-06-15

## README

# &lt;Avatr&gt;

---
Initially start as a fork of https://github.com/sitebase/react-avatar to give the user the choice of priority of queue possibilities
---

Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.
We use a fallback system that if for example an invalid Facebook ID is used it will try Google, and so on.

For the moment we support following types:
* Facebook
* Google
* Skype
* Gravatar
* Name initials
* Custom text
* Custom image

The fallbacks are in the same order as the list you defined in props.priority.

```
priority: ['src', 'gravatar', 'facebook', 'google', 'skype', 'name', 'value'] // Default priority list
```

## Install

Install the component using [NPM](https://www.npmjs.com/):

```sh
$ npm install react-avatr --save
```

## Usage

1. Import Custom Element:

    ```js
    import Avatr from 'react-avatr';
    ```

2. Start using it!

    ```html
    <Avatr />
    ```

Some examples:

    <Avatr  size={100}
            round={true}
            email="info@studiofrenetic.com"
            facebookId="131126510267471"
            googleId="109698448540584893289"
            src="http://placekitten.com/g/101/100"
            name="Studio Frenetic"
            value="SF"
            priority={['facebook', 'google', 'gravatar', 'skype', 'src', 'name', 'value']}
            />

## License

[MIT License](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/react-avatr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
