{
  "name": "user-profile",
  "type": "registry:ui",
  "framework": "react",
  "title": "User Profile Popout",
  "description": "Floating profile card with a banner, overlapping avatar, bio section and role tags.",
  "registryDependencies": [
    "@newtui/avatar",
    "@newtui/status-indicator",
    "@newtui/role-tag",
    "@newtui/button"
  ],
  "files": [
    {
      "path": "ui/user-profile.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst UserProfile = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"w-[280px] overflow-hidden rounded-[var(--newt-radius-lg)] border border-newt-border bg-newt-bg-base shadow-elevation-high\",\n      className\n    )}\n    {...props}\n  />\n))\nUserProfile.displayName = \"UserProfile\"\n\nconst UserProfileBanner = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"h-[60px] bg-newt-brand\", className)}\n    {...props}\n  />\n))\nUserProfileBanner.displayName = \"UserProfileBanner\"\n\nconst UserProfileHead = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"relative px-4 pb-3\", className)} {...props} />\n))\nUserProfileHead.displayName = \"UserProfileHead\"\n\nconst UserProfileActions = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex justify-end gap-2 pb-9 pt-2\", className)}\n    {...props}\n  />\n))\nUserProfileActions.displayName = \"UserProfileActions\"\n\nconst UserProfileAvatar = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"absolute -top-6 start-4 rounded-full border-4 border-newt-bg-base\",\n      className\n    )}\n    {...props}\n  />\n))\nUserProfileAvatar.displayName = \"UserProfileAvatar\"\n\nconst UserProfileName = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"text-base font-bold text-newt-text-primary\", className)}\n    {...props}\n  />\n))\nUserProfileName.displayName = \"UserProfileName\"\n\nconst UserProfileHandle = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"mb-[10px] text-[13px] text-newt-text-muted\", className)}\n    {...props}\n  />\n))\nUserProfileHandle.displayName = \"UserProfileHandle\"\n\nconst UserProfileDivider = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    role=\"separator\"\n    className={cn(\"my-[10px] h-px bg-newt-border\", className)}\n    {...props}\n  />\n))\nUserProfileDivider.displayName = \"UserProfileDivider\"\n\nconst UserProfileBody = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"px-4 pb-4\", className)} {...props} />\n))\nUserProfileBody.displayName = \"UserProfileBody\"\n\nconst UserProfileSectionLabel = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"mb-[6px] text-[11px] font-bold uppercase tracking-[0.06em] text-newt-text-muted\",\n      className\n    )}\n    {...props}\n  />\n))\nUserProfileSectionLabel.displayName = \"UserProfileSectionLabel\"\n\nconst UserProfileBio = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"text-[13px] leading-[1.5] text-newt-text-secondary\",\n      className\n    )}\n    {...props}\n  />\n))\nUserProfileBio.displayName = \"UserProfileBio\"\n\nconst UserProfileRoles = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"flex flex-wrap gap-1\", className)} {...props} />\n))\nUserProfileRoles.displayName = \"UserProfileRoles\"\n\nexport {\n  UserProfile,\n  UserProfileBanner,\n  UserProfileHead,\n  UserProfileActions,\n  UserProfileAvatar,\n  UserProfileName,\n  UserProfileHandle,\n  UserProfileDivider,\n  UserProfileBody,\n  UserProfileSectionLabel,\n  UserProfileBio,\n  UserProfileRoles,\n}\n",
      "type": "registry:ui"
    }
  ]
}