{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "native-select",
  "title": "Native Select",
  "description": "Dropdown using the native select element.",
  "files": [
    {
      "path": "registry/new-york/ui/native-select.tsx",
      "content": "import { ChevronDownIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst NativeSelect = React.forwardRef<\n  HTMLSelectElement,\n  React.ComponentProps<\"select\">\n>(function NativeSelect({ className, ...props }, ref) {\n  return (\n    <div\n      aria-disabled={(props as any).disabled ? true : undefined}\n      className=\"group/native-select relative w-fit touch-manipulation has-[select:disabled]:opacity-50\"\n      data-slot=\"native-select-wrapper\"\n    >\n      <select\n        className={cn(\n          \"h-9 w-full min-w-0 touch-manipulation appearance-none rounded-md border border-input bg-transparent px-3 py-2 pr-9 text-foreground text-sm tabular-nums shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed dark:bg-input/30 dark:hover:bg-input/50\",\n          \"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50\",\n          \"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40\",\n          className\n        )}\n        data-slot=\"native-select\"\n        ref={ref}\n        {...props}\n      />\n      <ChevronDownIcon\n        aria-hidden=\"true\"\n        className=\"pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 select-none text-muted-foreground opacity-50\"\n        data-slot=\"native-select-icon\"\n      />\n    </div>\n  );\n});\n\nfunction NativeSelectOption({ ...props }: React.ComponentProps<\"option\">) {\n  return <option data-slot=\"native-select-option\" {...props} />;\n}\n\nfunction NativeSelectOptGroup({\n  className,\n  ...props\n}: React.ComponentProps<\"optgroup\">) {\n  return (\n    <optgroup\n      className={cn(className)}\n      data-slot=\"native-select-optgroup\"\n      {...props}\n    />\n  );\n}\n\nexport { NativeSelect, NativeSelectOptGroup, NativeSelectOption };\n",
      "type": "registry:ui"
    }
  ],
  "docs": "https://ui.shadcn.com/docs/components/native-select?utm_source=hextaui&utm_medium=referral&utm_campaign=component-docs&ref=hextaui.com",
  "categories": [
    "component"
  ],
  "type": "registry:ui"
}