{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "native-select",
  "type": "registry:ui",
  "title": "Native Select",
  "description": "The browser select in the system field style, with invalid and disabled states. Best on phones and for short lists.",
  "dependencies": [
    "lucide-react@^1.49.0"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/theme.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/ui/native-select.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/ui/native-select.tsx",
      "content": "import { forwardRef, type SelectHTMLAttributes } from 'react';\nimport { ChevronDown } from 'lucide-react';\nimport { cn } from '../lib/utils';\n\nexport interface NativeSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {\n  invalid?: boolean;\n}\n\n/** The browser's own select, in the system's field style. Best on phones and for short lists; use inside a Field. */\nexport const NativeSelect = forwardRef<HTMLSelectElement, NativeSelectProps>(function NativeSelect({ className, invalid, children, ...rest }, ref) {\n  return (\n    <span className={cn('relative inline-flex min-w-0 max-w-full', className)}>\n      <select\n        ref={ref}\n        aria-invalid={invalid || undefined}\n        className={cn(\n          'min-h-11 w-full min-w-0 appearance-none rounded-kh border border-kh-line-strong bg-kh-surface py-2 pl-3 pr-10 text-kh-body text-kh-ink shadow-kh-1',\n          'hover:border-kh-muted focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-(--kh-focus)',\n          'disabled:cursor-not-allowed disabled:bg-kh-surface-2 disabled:text-kh-muted aria-[invalid=true]:border-kh-danger',\n        )}\n        {...rest}\n      >\n        {children}\n      </select>\n      <ChevronDown aria-hidden className=\"pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-kh-muted\" />\n    </span>\n  );\n});\n"
    }
  ]
}
