| 79 | } |
| 80 | |
| 81 | function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">) { |
| 82 | return ( |
| 83 | <div |
| 84 | data-slot="avatar-group-count" |
| 85 | className={cn( |
| 86 | "relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", |
| 87 | className, |
| 88 | )} |
| 89 | {...props} |
| 90 | /> |
| 91 | ); |
| 92 | } |
| 93 | |
| 94 | export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount }; |