vue-adorable-avatar
v1.0.0
Published
Adorable Avatar component for VueJS
Downloads
2
Readme
vue-adorable-avatar
A super simple adorable avatar component for VueJS applications.
Installation
yarn add vue-adorable-avatar
Usage
Register the component
import Vue from 'vue';
import AdorableAvatar from 'vue-adorable-avatar';
Vue.component('adorable-avatar', AdorableAvatar);
You may now use the component in your markup
<adorable-avatar email="[email protected]" />
Props
The following props are available:
- email (type: String) email address to generate the avattar
- size (type: Number, default: 285) size of the avatar
- alt (type: String, default: 'Avatar') The alternative text of the image
Example
<adorable-avatar alt="Nobody" :size="200" />
License
The MIT License (MIT) - See file 'LICENSE' in this project