vue-group-avatar
Version:
Simple component to group your avatars in a minimalist way
61 lines (48 loc) • 1.44 kB
Markdown
group of avatars in your application 👀🎉

``` bash
npm install vue-group-avatar
yarn add vue-group-avatar
```
``` bash
import "vue-group-avatar/dist/vue-group-avatar.css"
import { GroupAvatar } from "vue-group-avatar";
export default {
components: {
GroupAvatar,
}
}
```
``` bash
<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>
```
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| avatars | Array | null | You must have an array with the routes of all your photographs, so that they can be displayed |
| max | Number | 5 | Maximum number of avatarts displayed |
| borderColor | String |
MIT
A minimalist component to display a