{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon",
  "title": "Icon",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/icon/Icon.tsx",
      "content": "import * as React from 'react'\nimport { Platform } from 'react-native'\nimport type { LucideIcon, LucideProps } from 'lucide-react-native'\nimport type { Svg } from 'react-native-svg'\nimport { cssInterop } from 'react-native-css-interop'\nimport { useThemeColors } from '@/lib/theme'\n\nexport interface IconProps extends LucideProps {\n  icon: LucideIcon\n  className?: string\n}\n\nexport const Icon = React.forwardRef<React.ComponentRef<typeof Svg>, IconProps>(\n  ({ icon: IconComponent, size = 20, color, accessibilityLabel, ...props }, ref) => {\n    const colors = useThemeColors()\n    // Lucide forwards its SVG ref, but the LucideIcon alias omits that prop.\n    const SvgIcon = IconComponent as React.ComponentType<\n      LucideProps & React.RefAttributes<React.ComponentRef<typeof Svg>>\n    >\n    return (\n      <SvgIcon\n        ref={ref}\n        size={size}\n        color={color ?? colors.foreground}\n        accessible={Platform.OS === 'web' ? undefined : !!accessibilityLabel}\n        aria-hidden={!accessibilityLabel}\n        accessibilityLabel={Platform.OS === 'web' ? undefined : accessibilityLabel}\n        aria-label={accessibilityLabel}\n        {...props}\n      />\n    )\n  },\n)\nIcon.displayName = 'Icon'\n\ncssInterop(Icon, { className: { target: 'style', nativeStyleToProp: { color: true } } })\n",
      "type": "registry:ui",
      "target": "~/components/ui/icon/Icon.tsx"
    },
    {
      "path": "packages/registry-native/components/icon/index.ts",
      "content": "export * from './Icon'\n",
      "type": "registry:ui",
      "target": "~/components/ui/icon/index.ts"
    }
  ],
  "dependencies": [
    "lucide-react-native",
    "react-native-svg",
    "react-native-css-interop"
  ],
  "devDependencies": [],
  "registryDependencies": [],
  "description": "Lucide icon adapter with themed colors, forwarded SVG props, and decorative defaults.",
  "categories": [
    "display"
  ]
}