{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "native-select",
  "title": "Native Select",
  "description": "A styled native HTML select element for simple lists and mobile-friendly forms.",
  "dependencies": [
    "lucide-react@^1.48.0"
  ],
  "files": [
    {
      "path": "registry/rapid/ui/native-select/native-select.tsx",
      "content": "import { ChevronDownIcon } from 'lucide-react'\nimport type * as React from 'react'\nimport { cn } from '@/lib/utils'\n\ntype NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & {\n\tsize?: 'sm' | 'default'\n}\n\nfunction NativeSelect({ className, size = 'default', ...props }: NativeSelectProps) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn('group/native-select relative w-fit has-[select:disabled]:opacity-50', className)}\n\t\t\tdata-slot=\"native-select-wrapper\"\n\t\t\tdata-size={size}\n\t\t>\n\t\t\t<select\n\t\t\t\tdata-slot=\"native-select\"\n\t\t\t\tdata-size={size}\n\t\t\t\tclassName=\"h-10 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors 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 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\"\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t\t<ChevronDownIcon\n\t\t\t\tclassName=\"pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tdata-slot=\"native-select-icon\"\n\t\t\t/>\n\t\t</div>\n\t)\n}\n\nfunction NativeSelectOption({ className, ...props }: React.ComponentProps<'option'>) {\n\treturn (\n\t\t<option data-slot=\"native-select-option\" className={cn('bg-[Canvas] text-[CanvasText]', className)} {...props} />\n\t)\n}\n\nfunction NativeSelectOptGroup({ className, ...props }: React.ComponentProps<'optgroup'>) {\n\treturn (\n\t\t<optgroup data-slot=\"native-select-optgroup\" className={cn('bg-[Canvas] text-[CanvasText]', className)} {...props} />\n\t)\n}\n\nexport { NativeSelect, NativeSelectOptGroup, NativeSelectOption }\n",
      "type": "registry:ui",
      "target": "components/ui/native-select.tsx"
    }
  ],
  "meta": {
    "new": true
  },
  "type": "registry:ui"
}