1.0.0 • Published 4 years ago

vue-adorable-avatar v1.0.0

Weekly downloads
7
License
MIT
Repository
-
Last release
4 years ago

vue-adorable-avatar

Node.js CI

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@example.com" />

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

1.0.0

4 years ago