Group with count
flx/avatar-10FreeBlock
Overlapping group with a +N count for the remaining members.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/avatar-10.jsonSource
1import {2 Avatar,3 AvatarFallback,4 AvatarGroup,5 AvatarGroupCount,6 AvatarImage,7} from '@/components/ui/avatar'89const members = [10 {11 name: 'Sofia Rodrigues',12 initials: 'SR',13 src: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=200&auto=format&fit=crop',14 },15 {16 name: 'Liam Carter',17 initials: 'LC',18 src: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?q=80&w=200&auto=format&fit=crop',19 },20 {21 name: 'Ana Moreira',22 initials: 'AM',23 src: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?q=80&w=200&auto=format&fit=crop',24 },25]2627export function Avatar10() {28 return (29 <AvatarGroup>30 {members.map((member) => (31 <Avatar key={member.name}>32 <AvatarImage src={member.src} alt={member.name} />33 <AvatarFallback>{member.initials}</AvatarFallback>34 </Avatar>35 ))}36 <AvatarGroupCount>+5</AvatarGroupCount>37 </AvatarGroup>38 )39}
What it pulls in
Other registry items
Files it writes
More from flx
All 450 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Basicaccordion-01 | flx | Blocks | Free | no deps | |
| Multipleaccordion-02 | flx | Blocks | Free | no deps | |
| With iconsaccordion-03 | flx | Blocks | Free | no deps | |
| FAQaccordion-04 | flx | Blocks | Free | no deps | |
| Separated cardsaccordion-05 | flx | Blocks | Free | no deps | |
| Plus / minus iconaccordion-06 | flx | Blocks | Free | 1 dep | |
| Left chevronaccordion-07 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps |
