BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Kibo UI Registry/avatar-stack

avatar-stack

kibo-ui-registry/avatar-stack
FreeComponent

Avatar Stack is a component that allows you to stack and overlap avatars.

Live preview

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

Install it

npx shadcn@latest add https://www.kibo-ui.com/r/avatar-stack.json

Source

index.tsxwww.kibo-ui.com/r/avatar-stack.json
1import { Children, type ReactNode } from "react";
2import { cn } from "@/lib/utils";
3
4export type AvatarStackProps = {
5 children: ReactNode;
6 className?: string;
7 animate?: boolean;
8 size?: number;
9};
10
11export const AvatarStack = ({
12 children,
13 className,
14 animate = false,
15 size = 40,
16 ...props
17}: AvatarStackProps) => (
18 <div
19 className={cn(
20 "-space-x-1 flex items-center",
21 animate && "hover:space-x-0 [&>*]:transition-all",
22 className
23 )}
24 {...props}
25 >
26 {Children.map(children, (child, index) => {
27 if (!child) {
28 return null;
29 }
30
31 return (
32 <div
33 className={cn(
34 "size-full shrink-0 overflow-hidden rounded-full",
35 '[&_[data-slot="avatar"]]:size-full',
36 className
37 )}
38 style={{
39 width: size,
40 height: size,
41 maskImage: index
42 ? `radial-gradient(circle ${size / 2}px at -${size / 4 + size / 10}px 50%, transparent 99%, white 100%)`
43 : "",
44 }}
45 >
46 {child}
47 </div>
48 );
49 })}
50 </div>
51);

Files it writes

  • index.tsx

Facts

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

Go to the source

Docs on Kibo UI Registry www.kibo-ui.com Raw registry item This item as JSON

More from Kibo UI Registry

All 41 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
announcementannouncementKibo UI RegistryComponentsFreeno deps
bannerbannerKibo UI RegistryComponentsFree2 deps
calendarcalendarKibo UI RegistryComponentsFree3 deps
choiceboxchoiceboxKibo UI RegistryComponentsFree2 deps
code-blockcode-blockKibo UI RegistryComponentsFree5 deps · 2 files
color-pickercolor-pickerKibo UI RegistryComponentsFree3 deps
comboboxcomboboxKibo UI RegistryComponentsFree2 deps
comparisoncomparisonKibo UI RegistryComponentsFree2 deps
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