{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "avatar",
  "title": "Avatar",
  "description": "An avatar component for displaying user images.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/components/ui/avatar.tsx",
      "content": "// src/components/ui/avatar.tsx\n\"use client\";\n\nimport * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/stories/lib/utils\";\n\nconst avatarVariants = cva(\"relative flex shrink-0 overflow-hidden\", {\n  variants: {\n    variant: {\n      primary: \"bg-primary text-primary-foreground\",\n      secondary: \"bg-secondary text-secondary-foreground\",\n      tertiary: \"bg-tertiary text-tertiary-foreground\",\n      quaternary: \"bg-quaternary text-quaternary-foreground\",\n    },\n    size: {\n      micro: \"h-4 w-4 text-[6px]\",\n      xs: \"h-6 w-6 text-[9px]\",\n      sm: \"h-7 w-7 text-[12px]\",\n      md: \"h-9 w-9 text-sm\", // changed to text-sm\n      lg: \"h-11 w-11 text-base\", // text-base\n      xl: \"h-14 w-14 text-lg\",\n    },\n    shape: {\n      circle: \"rounded-full\",\n      square: \"rounded-sm\",\n    },\n  },\n  defaultVariants: {\n    variant: \"primary\",\n    size: \"md\",\n    shape: \"square\",\n  },\n});\n\nexport interface AvatarProps\n  extends\n    React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n    VariantProps<typeof avatarVariants> {}\n\nconst Avatar = React.forwardRef<\n  React.ElementRef<typeof AvatarPrimitive.Root>,\n  AvatarProps\n>(({ className, variant, size, shape, ...props }, ref) => (\n  // IMPORTANT: merge the variant classes first, then any external className\n  <AvatarPrimitive.Root\n    ref={ref}\n    className={cn(avatarVariants({ variant, size, shape }), className)}\n    {...props}\n  />\n));\nAvatar.displayName = \"Avatar\";\n\nconst AvatarImage = React.forwardRef<\n  React.ElementRef<typeof AvatarPrimitive.Image>,\n  React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n  <AvatarPrimitive.Image\n    ref={ref}\n    className={cn(\"aspect-square h-full w-full object-cover\", className)}\n    {...props}\n  />\n));\nAvatarImage.displayName = \"AvatarImage\";\n\nconst AvatarFallback = React.forwardRef<\n  React.ElementRef<typeof AvatarPrimitive.Fallback>,\n  React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n  <AvatarPrimitive.Fallback\n    ref={ref}\n    className={cn(\n      \"flex h-full w-full items-center justify-center text-sm font-medium leading-none\",\n      className,\n    )}\n    {...props}\n  />\n));\nAvatarFallback.displayName = \"AvatarFallback\";\n\nexport { Avatar, AvatarImage, AvatarFallback };\n",
      "type": "registry:ui",
      "target": " components/ui/avatar.tsx"
    }
  ],
  "type": "registry:ui"
}