UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

Magic UI/Avatar Circles

Media & 3D
1 of 7
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

7 versions·6 librariesCompare all avatars →

  • Magic UI
  • 8bitcn
  • HextaUI
  • Kokonut UI
  • shadcn/ui
  • Agent Avatar
  • Animated Avatar Group

Avatar Circles

Overlapping circles of avatars.

npx shadcn@latest add https://magicui.design/r/avatar-circles.json
Open in v0 Docs Repo
Library
Magic UI
License
MIT
Stack
React · Tailwind CSS
Size
50 lines
Demo
From Magic UI

Code

registry/magicui/avatar-circles.tsx

"use client"

import { cn } from "@/lib/utils"

interface Avatar {
  imageUrl: string
  profileUrl: string
}
interface AvatarCirclesProps {
  className?: string
  numPeople?: number
  avatarUrls: Avatar[]
}

export const AvatarCircles = ({
  numPeople,
  className,
  avatarUrls,
}: AvatarCirclesProps) => {
  return (
    <div className={cn("z-10 flex -space-x-4 rtl:space-x-reverse", className)}>
      {avatarUrls.map((url, index) => (
        <a
          key={index}
          href={url.profileUrl}
          target="_blank"
          rel="noopener noreferrer"
        >
          <img
            key={index}
            className="h-10 w-10 rounded-full border-2 border-white dark:border-gray-800"
            src={url.imageUrl}
            width={40}
            height={40}
            alt={`Avatar ${index + 1}`}
          />
        </a>
      ))}
      {(numPeople ?? 0) > 0 && (
        <a
          className="flex h-10 w-10 items-center justify-center rounded-full border-2 border-white bg-black text-center text-xs font-medium text-white hover:bg-gray-600 dark:border-gray-800 dark:bg-white dark:text-black"
          href=""
        >
          +{numPeople}
        </a>
      )}
    </div>
  )
}

More like this

GitHub Stars Button

Animate UI·BackgroundsMIT+

Avatar

shadcn/ui·Media & 3D

Dock

Cult UI·Navigation

8-bit XP Bar

8bitcn·Feedback & loaders

Text Cursor

React Bits·Text effectsMIT+

8-bit Textarea

8bitcn·Text effects

8-bit Avatar

8bitcn·Media & 3D

Drape Background

Kokonut UI·Backgrounds

8-bit Health Bar

8bitcn·Feedback & loaders

8-bit Mana Bar

8bitcn·Feedback & loaders

8-bit Progress

8bitcn·Feedback & loaders

Progress

shadcn/ui·Feedback & loaders

Fuzzy Text

React Bits·Text effectsMIT+

8-bit Slider

8bitcn·Inputs & forms

Three D Carousel

Cult UI·Media & 3D