{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "avatar-11",
  "type": "registry:component",
  "title": "Avatar 11",
  "description": "Avatar 11. Displays images, icons, or text in a circular or rounded shape.",
  "dependencies": [],
  "registryDependencies": [
    "avatar",
    "badge"
  ],
  "files": [
    {
      "path": "components/watermelon/avatar-11.tsx",
      "type": "registry:component",
      "content": "import {\n  Avatar,\n  AvatarFallback,\n  AvatarImage,\n} from '@/components/base-ui/avatar';\nimport { Badge } from '@/components/base-ui/badge';\n\ntype Profile = {\n  name: string;\n  avatar: string;\n  count: number;\n};\n\nconst profile: Profile = {\n  name: 'Olivia',\n  avatar: 'https://assets.watermelon.sh/wm_olivia.png',\n  count: 12,\n};\n\nconst getInitials = (name: string) =>\n  name\n    .split(/\\s+/)\n    .map((word) => word.slice(0, 1))\n    .join('');\n\nconst Avatar11 = () => {\n  return (\n    <div className=\"relative w-fit\">\n      <Avatar className=\"size-10 rounded-full overflow-hidden\">\n        <AvatarImage\n          src={profile.avatar}\n          alt={profile.name}\n        />\n        <AvatarFallback className=\"text-xs\">\n          {getInitials(profile.name)}\n        </AvatarFallback>\n      </Avatar>\n      <Badge className=\"absolute -top-2.5 -right-2.5 h-5 min-w-5 bg-slate-700 px-1 text-white tabular-nums dark:bg-slate-200 dark:text-slate-900\">\n        {profile.count}\n      </Badge>\n    </div>\n  );\n};\n\nexport default Avatar11;\n"
    }
  ]
}
