0.3.0 • Published 2 years ago

vue-group-avatar v0.3.0

Weekly downloads
70
License
MIT
Repository
github
Last release
2 years ago

Vue group avatar

A minimalist component to display a group of avatars in your application 👀🎉 npm.io

Install

npm install vue-group-avatar

# or
yarn add vue-group-avatar

Local Registration

import "vue-group-avatar/dist/vue-group-avatar.css"
import { GroupAvatar } from "vue-group-avatar";

export default {
  components: {
    GroupAvatar,
  }
}

Component

<template>
    <GroupAvatar border-color="#0092FF" :avatars="avatars" :max="2"></GroupAvatar>
</template>

<script>
  export default {
    name: 'home',
    data() {
      return {
        avatars: [
          "@/assets/img/img1.png", 
          "@/assets/img/img2.png", 
          "@/assets/img/img3.png", 
          "@/assets/img/img4.png"
          ]
      }
    }
  }
</script>

GroupAvatar component API

PropTypeDefaultDescription
avatarsArraynullYou must have an array with the routes of all your photographs, so that they can be displayed
maxNumber5Maximum number of avatarts displayed
borderColorString#FFFFFFYou can change the color of the borders using hexadecimal codes for the colors

License

MIT

0.3.0

2 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.0

4 years ago