@time-with/avatar-thumb
v1.1.0
Published
Avatar thumbnail display with text-based fallback
Readme
AvatarThumb
Circular profile image with initials fallback
Install
$ npm install @time-with/avatar-thumb
or
$ yarn add @time-with/avatar-thumbUsage
Add the Component to the root Router of your React layout
import AvatarThumb from '@time-with/avatar-thumb'
render() {
return (
<div>
<AvatarThumb
src={ src }
firstName={ firstName }
lastName={ lastName }
bgColor={ bgColor }
radius={ radius }
fontSize={ fontSize }
color={ color }
style={ avatarStyle }
/>License
MIT
