BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/SmoothUI Registry/animated-avatar-group

Animated Avatar Group

smoothui-registry/animated-avatar-group
FreeComponent

Stack of overlapping avatars with smooth expand/collapse animation

Install it

npx shadcn@latest add https://www.smoothui.dev/r/animated-avatar-group.json

Source

index.tsxwww.smoothui.dev/r/animated-avatar-group.json
1"use client";
2
3import { cn } from "@/lib/utils";
4import { motion, useReducedMotion } from "motion/react";
5import { useEffect, useState } from "react";
6
7export type AvatarData = {
8 src: string;
9 alt: string;
10 href?: string;
11};
12
13export type AnimatedAvatarGroupProps = {
14 avatars: AvatarData[];
15 maxVisible?: number;
16 size?: number;
17 overlap?: number;
18 className?: string;
19 expandOnHover?: boolean;
20};
21
22const AnimatedAvatarGroup = ({
23 avatars,
24 maxVisible = 4,
25 size = 40,
26 overlap = 0.3,
27 className,
28 expandOnHover = true,
29}: AnimatedAvatarGroupProps) => {
30 const shouldReduceMotion = useReducedMotion();
31 const [isHovered, setIsHovered] = useState(false);
32 const [isHoverDevice, setIsHoverDevice] = useState(false);
33
34 useEffect(() => {
35 const mediaQuery = window.matchMedia("(hover: hover) and (pointer: fine)");
36 setIsHoverDevice(mediaQuery.matches);
37
38 const handleChange = (event: MediaQueryListEvent) => {
39 setIsHoverDevice(event.matches);
40 };
41
42 mediaQuery.addEventListener("change", handleChange);
43 return () => {
44 mediaQuery.removeEventListener("change", handleChange);
45 };
46 }, []);
47
48 const visibleAvatars = avatars.slice(0, maxVisible);
49 const hiddenCount = avatars.length - maxVisible;
50 const hasHiddenAvatars = hiddenCount > 0;
51
52 const overlapPx = size * overlap;
53 const expanded = expandOnHover && isHoverDevice && isHovered;
54
55 const springTransition = shouldReduceMotion
56 ? { duration: 0 }
57 : { bounce: 0.1, duration: 0.25, type: "spring" as const };
58
59 return (
60 <motion.div
61 aria-label="Avatar group"
62 className={cn("flex items-center", className)}
63 onMouseEnter={() => setIsHovered(true)}
64 onMouseLeave={() => setIsHovered(false)}
65 role="group"
66 >
67 {visibleAvatars.map((avatar, index) => {
68 const marginLeft = index === 0 ? 0 : expanded ? 4 : -overlapPx;
69
70 const content = (
71 <motion.img
72 alt={avatar.alt}
73 animate={
74 shouldReduceMotion
75 ? { opacity: 1 }
76 : {
77 opacity: 1,
78 scale: expanded ? 1.05 : 1,
79 }
80 }
81 className="rounded-full object-cover"
82 draggable={false}
83 height={size}
84 initial={
85 shouldReduceMotion ? { opacity: 1 } : { opacity: 1, scale: 1 }
86 }
87 src={avatar.src}
88 style={{
89 height: size,
90 width: size,
91// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • index.tsx

Facts

Registry
SmoothUI Registry
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

www.smoothui.dev educlopez/smoothui on GitHub Raw registry item This item as JSON

More from SmoothUI Registry

All 178 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Agent Avataragent-avatarSmoothUI RegistryComponentsFreeno deps
Ai Approvalai-approvalSmoothUI RegistryComponentsFree2 deps
Ai Artifactai-artifactSmoothUI RegistryComponentsFree2 deps
Ai Branchai-branchSmoothUI RegistryComponentsFree2 deps
Ai Citationai-citationSmoothUI RegistryComponentsFree2 deps
Ai Context Meterai-context-meterSmoothUI RegistryComponentsFree2 deps
Ai Conversationai-conversationSmoothUI RegistryComponentsFree2 deps
Ai Coreai-coreSmoothUI RegistryComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex