Socket
Socket
Sign inDemoInstall

vue-group-avatar

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-group-avatar

Simple component to group your avatars in a minimalist way


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
15.3 MB
Created
Weekly downloads
 

Readme

Source

Vue group avatar

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

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

Keywords

FAQs

Last updated on 16 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc