HextaUIHextaUI
/Components/Application

Avatar Group

A component that displays a group of avatars.

Preview

Avatar 1
Avatar 2
Avatar 3
Avatar 4
+2

This component is available on 21st.dev.

Installation

NPM
npx shadcn@latest add "https://21st.dev/r/hextaui/avatar-group"

Usage

App.tsx
import { AvatarGroup } from "@/components/ui/AvatarGroup";
<AvatarGroup
  avatars={[
    { src: "/logo.png", label: "HextaUI" },
    { src: "/logo.png", label: "HextaUI" },
    { src: "/logo.png", label: "HextaUI" },
    { src: "/logo.png", label: "HextaUI" },
    { src: "/logo.png", label: "HextaUI" },
  ]}
  maxVisible={4}
  size={50}
/>;

Props

PropTypeDefault
overlap?
number
-
size?
number
-
maxVisible?
number
-
avatars
{ src: string; alt?: string | undefined; label?: string | undefined; }[]
-
Edit on GitHub

Last updated on