Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Animated Avatar Group

Preview

  • Maya Chen
  • Leo Hart
  • Ines Duarte
  • Sam Okafor

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/avatar-group

Import the shared styles once in your application.

TSUsage
import AvatarGroup from '@/components/beui/controls/AvatarGroup.vue'
import '@/components/beui/styles.css'

API Reference

Avatar

name
string
Default—
src?
string

Image URL. Without one, or if it fails to load, initials show.

Default—
size?
"sm" | "md" | "lg"
Defaultmd
class?
string
Default—

AvatarGroup

members
readonly AvatarGroupMember[]
Default—
max?
number

Avatars shown before the rest collapse into a +N count.

Default4
size?
AvatarSize
Defaultmd
v-model:expanded?
boolean

Whether every member is shown. Pair with `@update:expanded`.

Defaultundefined
defaultExpanded?
boolean
Defaultfalse
label?
string

Accessible name for the list, such as "Project members".

Default—
labels?
Partial<AvatarGroupMessages>

Override any built-in string. `{count}` fills `showMore`.

Default—
className?
string
Default—
@expanded-change?
(value: boolean) => void
Default—

Updated