React avatar component
[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
It can display image or abbreviation with background. Can be round.
``javascript
import Avatar, { SIZES, COLORS } from "@crpt/react-avatar";
`
| PropName | Description | Example |
|---|---|---|
| abbr: String | Abbreviation to display. Showed only when no src passed. | |
| size: String | Size type, one of keys of SIZES object. | |
| color: String | Color type, one of keys of COLORS object. | |
| src: String | Image path. | |
| round: Boolean | If true, avatar have border radius = 50%. |
[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo
[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package
[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo