{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "native-select",
  "type": "registry:ui",
  "title": "Native Select",
  "registryDependencies": [
    "https://hamur.dev/r/react/utils.json"
  ],
  "files": [
    {
      "path": "react/native-select.tsx",
      "content": "import type * as React from 'react' // base-ui-next/ui native-select@0.1.0\nimport { cn } from '@/lib/utils'\n\nconst nativeSelectWrapperClassName =\n  'group/native-select relative w-fit has-[select:disabled]:opacity-50'\n\nconst nativeSelectClassName =\n  'h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-8 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40'\n\nconst nativeSelectIconClassName =\n  'pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none'\n\nconst nativeSelectOptionClassName = 'bg-[Canvas] text-[CanvasText]'\n\nconst nativeSelectOptGroupClassName = 'bg-[Canvas] text-[CanvasText]'\n\ntype NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & {\n  size?: 'sm' | 'default'\n}\n\nfunction NativeSelect({ className, size = 'default', ...props }: NativeSelectProps) {\n  return (\n    <div\n      className={cn(nativeSelectWrapperClassName, className)}\n      data-slot=\"native-select-wrapper\"\n      data-size={size}\n    >\n      <select\n        data-slot=\"native-select\"\n        data-size={size}\n        className={nativeSelectClassName}\n        {...props}\n      />\n      <svg\n        xmlns=\"http://www.w3.org/2000/svg\"\n        viewBox=\"0 0 24 24\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth=\"2\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className={nativeSelectIconClassName}\n        aria-hidden=\"true\"\n        data-slot=\"native-select-icon\"\n      >\n        <path d=\"m6 9 6 6 6-6\" />\n      </svg>\n    </div>\n  )\n}\n\nfunction NativeSelectOption({ className, ...props }: React.ComponentProps<'option'>) {\n  return (\n    <option\n      data-slot=\"native-select-option\"\n      className={cn(nativeSelectOptionClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction NativeSelectOptGroup({ className, ...props }: React.ComponentProps<'optgroup'>) {\n  return (\n    <optgroup\n      data-slot=\"native-select-optgroup\"\n      className={cn(nativeSelectOptGroupClassName, className)}\n      {...props}\n    />\n  )\n}\n\nexport { NativeSelect, NativeSelectOptGroup, NativeSelectOption }\n",
      "type": "registry:ui",
      "target": "@ui/native-select.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.1.0",
      "hash": "11d218c50efe760518a9301dd9df594a02d0337fe27e12502c34bdd504e1efe8",
      "files": {
        "@ui/native-select.tsx": "a5608cd2a7c3e74b9c1a315541efccdfa337f6af8d34ba242113cf5b484c9eb2"
      }
    }
  }
}
