{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/combobox-10","type":"registry:component","title":"Combobox 10","description":"Multi-select framework combobox with badge display and removable selections","registryDependencies":["combobox","label"],"files":[{"path":"src/registry/new-york/components/combobox/combobox-10.tsx","content":"'use client'\n\nimport { useId } from 'react'\n\nimport {\n  Combobox,\n  ComboboxChip,\n  ComboboxChips,\n  ComboboxChipsInput,\n  ComboboxContent,\n  ComboboxEmpty,\n  ComboboxItem,\n  ComboboxList,\n  ComboboxValue,\n  useComboboxAnchor\n} from '@/registry/new-york/ui/combobox'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst frameworks = ['Next.js', 'SvelteKit', 'Nuxt.js', 'Remix', 'Astro', 'React', 'Vue', 'Angular', 'SolidJS', 'Qwik']\n\nconst ComboboxMultipleDemo = () => {\n  const id = useId()\n  const anchor = useComboboxAnchor()\n\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label htmlFor={id}>Multiple combobox</Label>\n      <Combobox multiple autoHighlight id={id} items={frameworks} defaultValue={[frameworks[0], frameworks[1]]}>\n        <ComboboxChips ref={anchor}>\n          <ComboboxValue>\n            {values => (\n              <>\n                {values.map((value: string) => (\n                  <ComboboxChip key={value}>{value}</ComboboxChip>\n                ))}\n                <ComboboxChipsInput />\n              </>\n            )}\n          </ComboboxValue>\n        </ComboboxChips>\n        <ComboboxContent anchor={anchor}>\n          <ComboboxEmpty>No items found.</ComboboxEmpty>\n          <ComboboxList>\n            {item => (\n              <ComboboxItem key={item} value={item}>\n                {item}\n              </ComboboxItem>\n            )}\n          </ComboboxList>\n        </ComboboxContent>\n      </Combobox>\n    </div>\n  )\n}\n\nexport default ComboboxMultipleDemo\n","type":"registry:component","target":"components/shadcn-studio/combobox/combobox-10.tsx"}]}