BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/magicui/avatar-circles

Avatar Circles

magicui/avatar-circles
FreeComponent

Overlapping circles of avatars.

Live preview

live · rendered by the registry
Rendered by magicui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://magicui.design/r/avatar-circles.json

Source

registry/magicui/avatar-circles.tsxmagicui.design/r/avatar-circles.json
1"use client"
2
3import { cn } from "@/lib/utils"
4
5interface Avatar {
6 imageUrl: string
7 profileUrl: string
8}
9interface AvatarCirclesProps {
10 className?: string
11 numPeople?: number
12 avatarUrls: Avatar[]
13}
14
15export const AvatarCircles = ({
16 numPeople,
17 className,
18 avatarUrls,
19}: AvatarCirclesProps) => {
20 return (
21 <div className={cn("z-10 flex -space-x-4 rtl:space-x-reverse", className)}>
22 {avatarUrls.map((url, index) => (
23 <a
24 key={index}
25 href={url.profileUrl}
26 target="_blank"
27 rel="noopener noreferrer"
28 >
29 <img
30 key={index}
31 className="h-10 w-10 rounded-full border-2 border-white dark:border-gray-800"
32 src={url.imageUrl}
33 width={40}
34 height={40}
35 alt={`Avatar ${index + 1}`}
36 />
37 </a>
38 ))}
39 {(numPeople ?? 0) > 0 && (
40 <a
41 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"
42 href=""
43 >
44 +{numPeople}
45 </a>
46 )}
47 </div>
48 )
49}

Files it writes

  • registry/magicui/avatar-circles.tsx

Facts

Registry
magicui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on magicui magicui.design magicuidesign/magicui on GitHub Raw registry item This item as JSON

More from magicui

All 247 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AndroidandroidmagicuiComponentsFreeno deps
Animated Beamanimated-beammagicuiComponentsFree1 dep
Animated Circular Progress Baranimated-circular-progress-barmagicuiComponentsFreeno deps
Animated Gradient Textanimated-gradient-textmagicuiComponentsFreeno deps
Animated Grid Patternanimated-grid-patternmagicuiComponentsFree1 dep
Animated Listanimated-listmagicuiComponentsFree1 dep
Animated Shiny Textanimated-shiny-textmagicuiComponentsFreeno deps
Theme Toggleranimated-theme-togglermagicuiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex