Socket
Socket
Sign inDemoInstall

vue-group-avatar

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

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
Maintainers
1
Created
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

Package last updated on 16 Jul 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc