{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "avatar", "type": "registry:ui", "title": "Avatar", "description": "An avatar component.", "dependencies": ["@radix-ui/react-avatar"], "files": [ { "path": "registry/niv/ui/avatar.tsx", "content": "'use client';\n\nimport { Fallback, Image, Root } from '@radix-ui/react-avatar';\nimport { cn } from '@/lib/classnames';\nimport type { ComponentProps } from 'react';\n\nconst AvatarRoot = ({ className, ...props }: ComponentProps) => {\n return (\n \n );\n};\n\nconst AvatarImage = ({ className, ...props }: ComponentProps) => {\n return (\n \n );\n};\n\nconst AvatarFallback = ({\n className,\n ...props\n}: ComponentProps) => {\n return (\n \n );\n};\n\nconst Avatar = Object.assign(AvatarRoot, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n\nexport { Avatar };\n", "type": "registry:ui" } ] }