{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/combobox-05","type":"registry:component","title":"Combobox 5","description":"Framework selector combobox with custom check icon styling","dependencies":["lucide-react"],"registryDependencies":["combobox","label"],"files":[{"path":"src/registry/new-york/components/combobox/combobox-05.tsx","content":"'use client'\n\nimport { useId } from 'react'\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react'\nimport { CircleCheckIcon } from 'lucide-react'\n\nimport { Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxList } from '@/registry/new-york/ui/combobox'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst frameworks = ['Next.js', 'SvelteKit', 'Nuxt.js', 'Remix', 'Astro'] as const\n\nconst ComboboxCustomCheckIconDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label htmlFor={id}>Combobox with custom check icon</Label>\n      <Combobox id={id} items={frameworks}>\n        <ComboboxInput placeholder='Select a framework' />\n        <ComboboxContent>\n          <ComboboxEmpty>No items found.</ComboboxEmpty>\n          <ComboboxList>\n            {item => (\n              <ComboboxPrimitive.Item\n                key={item}\n                value={item}\n                className='data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0'\n              >\n                {item}\n                <ComboboxPrimitive.ItemIndicator\n                  data-slot='combobox-item-indicator'\n                  render={\n                    <span className='pointer-events-none absolute right-2 flex size-4 items-center justify-center' />\n                  }\n                >\n                  <CircleCheckIcon className='pointer-events-none size-4 fill-blue-500 stroke-white pointer-coarse:size-5' />\n                </ComboboxPrimitive.ItemIndicator>\n              </ComboboxPrimitive.Item>\n            )}\n          </ComboboxList>\n        </ComboboxContent>\n      </Combobox>\n    </div>\n  )\n}\n\nexport default ComboboxCustomCheckIconDemo\n","type":"registry:component","target":"components/shadcn-studio/combobox/combobox-05.tsx"}]}