{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/combobox-04","type":"registry:component","title":"Combobox 4","description":"Industry selector combobox with icons for various business sectors","dependencies":["lucide-react"],"registryDependencies":["combobox","label"],"files":[{"path":"src/registry/new-york/components/combobox/combobox-04.tsx","content":"'use client'\n\nimport { useId } from 'react'\n\nimport {\n  DollarSignIcon,\n  FactoryIcon,\n  FilmIcon,\n  HospitalIcon,\n  HotelIcon,\n  MonitorIcon,\n  ScaleIcon,\n  SchoolIcon,\n  TractorIcon,\n  ZapIcon\n} from 'lucide-react'\n\nimport {\n  Combobox,\n  ComboboxContent,\n  ComboboxEmpty,\n  ComboboxInput,\n  ComboboxItem,\n  ComboboxList\n} from '@/registry/new-york/ui/combobox'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst industries = [\n  {\n    value: 'information technology',\n    label: 'Information Technology',\n    icon: MonitorIcon\n  },\n  {\n    value: 'healthcare',\n    label: 'Healthcare',\n    icon: HospitalIcon\n  },\n  {\n    value: 'finance',\n    label: 'Finance',\n    icon: DollarSignIcon\n  },\n  {\n    value: 'education',\n    label: 'Education',\n    icon: SchoolIcon\n  },\n  {\n    value: 'entertainment',\n    label: 'Entertainment',\n    icon: FilmIcon\n  },\n  {\n    value: 'manufacturing',\n    label: 'Manufacturing',\n    icon: FactoryIcon\n  },\n  {\n    value: 'energy',\n    label: 'Energy',\n    icon: ZapIcon\n  },\n  {\n    value: 'hospitality',\n    label: 'Hospitality',\n    icon: HotelIcon\n  },\n  {\n    value: 'legal',\n    label: 'Legal',\n    icon: ScaleIcon\n  },\n  {\n    value: 'agriculture',\n    label: 'Agriculture',\n    icon: TractorIcon\n  }\n]\n\nconst ComboboxOptionWithIIconDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label htmlFor={id}>Combobox option with icon</Label>\n      <Combobox id={id} items={industries}>\n        <ComboboxInput placeholder='Select an industry' />\n        <ComboboxContent>\n          <ComboboxEmpty>No industries found.</ComboboxEmpty>\n          <ComboboxList>\n            {item => (\n              <ComboboxItem key={item.value} value={item.value} className='flex items-center gap-2'>\n                <item.icon className='text-muted-foreground size-4' />\n                {item.label}\n              </ComboboxItem>\n            )}\n          </ComboboxList>\n        </ComboboxContent>\n      </Combobox>\n    </div>\n  )\n}\n\nexport default ComboboxOptionWithIIconDemo\n","type":"registry:component","target":"components/shadcn-studio/combobox/combobox-04.tsx"}]}