{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-button",
  "title": "Icon Button",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/icon-button/IconButton.tsx",
      "content": "import * as React from 'react'\nimport { Pressable } from 'react-native'\nimport type { LucideIcon } from 'lucide-react-native'\nimport { Button, type ButtonProps } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\nimport { useThemeColors } from '@/lib/theme'\n\nexport interface IconButtonProps extends Omit<ButtonProps, 'children' | 'size'> {\n  icon: LucideIcon\n  accessibilityLabel: string\n  iconSize?: number\n  iconColor?: string\n}\n\nexport const IconButton = React.forwardRef<React.ComponentRef<typeof Pressable>, IconButtonProps>(\n  ({ icon, iconSize = 20, iconColor, variant = 'ghost', ...props }, ref) => {\n    const colors = useThemeColors()\n    const foreground =\n      variant === 'default'\n        ? colors.primaryForeground\n        : variant === 'destructive'\n          ? colors.destructiveForeground\n          : variant === 'secondary'\n            ? colors.secondaryForeground\n            : variant === 'link'\n              ? colors.primary\n              : colors.foreground\n    return (\n      <Button ref={ref} {...props} size=\"icon\" variant={variant}>\n        <Icon icon={icon} size={iconSize} color={iconColor ?? foreground} />\n      </Button>\n    )\n  },\n)\nIconButton.displayName = 'IconButton'\n",
      "type": "registry:ui",
      "target": "~/components/ui/icon-button/IconButton.tsx"
    },
    {
      "path": "packages/registry-native/components/icon-button/index.ts",
      "content": "export * from './IconButton'\n",
      "type": "registry:ui",
      "target": "~/components/ui/icon-button/index.ts"
    }
  ],
  "dependencies": [
    "lucide-react-native"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/button.json",
    "https://native.uipkge.dev/r/native/icon.json"
  ],
  "description": "Icon-only Button with a required label, themed foregrounds, and inherited busy/disabled behavior.",
  "categories": [
    "control"
  ]
}