{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "avatar-5",
  "type": "registry:component",
  "title": "Avatar 5",
  "description": "Avatar 5. Displays images, icons, or text in a circular or rounded shape.",
  "dependencies": [],
  "registryDependencies": [
    "avatar",
    "tooltip"
  ],
  "files": [
    {
      "path": "components/watermelon/avatar-5.tsx",
      "type": "registry:component",
      "content": "import { Avatar, AvatarFallback } from '@/components/base-ui/avatar';\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipProvider,\n  TooltipTrigger,\n} from '@/components/base-ui/tooltip';\n\ntype Profile = {\n  name: string;\n  role: string;\n};\n\nconst profile: Profile = {\n  name: 'Ethan Cole',\n  role: 'Support Lead',\n};\n\nconst getInitials = (name: string) =>\n  name\n    .split(/\\s+/)\n    .map((word) => word.slice(0, 1))\n    .join('');\n\nconst Avatar5 = () => {\n  return (\n    <TooltipProvider>\n      <Tooltip>\n        <TooltipTrigger>\n          <Avatar>\n            <AvatarFallback className=\"text-xs\">\n              {getInitials(profile.name)}\n            </AvatarFallback>\n          </Avatar>\n        </TooltipTrigger>\n        <TooltipContent className=\"px-2 py-1 text-[11px]\">\n          {profile.name} · {profile.role}\n        </TooltipContent>\n      </Tooltip>\n    </TooltipProvider>\n  );\n};\n\nexport default Avatar5;\n"
    }
  ]
}
