{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "label",
  "type": "registry:ui",
  "title": "Label",
  "author": "@mrzachnugent",
  "description": "Renders an accessible label associated with controls.",
  "dependencies": [
    "@rn-primitives/label"
  ],
  "files": [
    {
      "path": "./node_modules/@rnr/registry/src/nativewind/components/ui/label.tsx",
      "content": "import { cn } from '@/registry/nativewind/lib/utils';\nimport * as LabelPrimitive from '@rn-primitives/label';\nimport { Platform } from 'react-native';\n\nfunction Label({\n  className,\n  onPress,\n  onLongPress,\n  onPressIn,\n  onPressOut,\n  disabled,\n  ...props\n}: React.ComponentProps<typeof LabelPrimitive.Text>) {\n  return (\n    <LabelPrimitive.Root\n      className={cn(\n        'flex select-none flex-row items-center gap-2',\n        Platform.select({\n          web: 'cursor-default leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50',\n        }),\n        disabled && 'opacity-50'\n      )}\n      onPress={onPress}\n      onLongPress={onLongPress}\n      onPressIn={onPressIn}\n      onPressOut={onPressOut}\n      disabled={disabled}>\n      <LabelPrimitive.Text\n        className={cn(\n          'text-foreground text-sm font-medium',\n          Platform.select({ web: 'leading-none' }),\n          className\n        )}\n        {...props}\n      />\n    </LabelPrimitive.Root>\n  );\n}\n\nexport { Label };\n",
      "type": "registry:ui"
    }
  ]
}