AvatarStack

The people on a thing, overlapped: who is in a conversation, who shares a list.

Import it from rei-kit: import { AvatarStack } from 'rei-kit'

Open AvatarStack in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.

Usage

<script setup lang="ts">
import { AvatarStack } from 'rei-kit'

const people = [
  { name: 'Aiko Tanaka' },
  { name: 'Kenji Mori' },
  { name: 'Mei Lin' },
  { name: 'Ravi Patel' },
  { name: 'Sara Yilmaz' },
]
</script>

<template>
  <AvatarStack :people="people" :max="3" label="Shared with 5 people" />
</template>

Props

Props
PropTypeRequired or defaultWhat it is for
peoplereadonly { name: string; src?: string | undefined }[]yesEach person's name, and a picture where there is one.
labelstringyesThe stack's accessible name: "Shared with 6 people". Already translated.
maxnumber4How many faces before the rest become a number.
size'sm' | 'md' | 'lg''md'

About rei-kit

rei-kit is an accessible Vue 3 and Tailwind CSS 4 component library: 106 components, themed by role rather than by colour on three independent axes — ten WCAG-checked palettes, four materials and light or dark, each switched with one attribute. Typed, tested, SSR-safe, no runtime dependencies, MIT.

pnpm add rei-kit · npm · GitHub