{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "p-combobox-18",
  "description": "Combobox with select trigger",
  "registryDependencies": [
    "@coss/combobox",
    "@coss/select"
  ],
  "files": [
    {
      "path": "registry/default/particles/p-combobox-18.tsx",
      "content": "\"use client\";\n\nimport { SearchIcon } from \"lucide-react\";\nimport {\n  Combobox,\n  ComboboxEmpty,\n  ComboboxInput,\n  ComboboxItem,\n  ComboboxList,\n  ComboboxPopup,\n  ComboboxTrigger,\n  ComboboxValue,\n} from \"@/registry/default/ui/combobox\";\nimport { SelectButton } from \"@/registry/default/ui/select\";\n\nconst items = [\n  { label: \"Apple\", value: \"apple\" },\n  { label: \"Banana\", value: \"banana\" },\n  { label: \"Orange\", value: \"orange\" },\n  { label: \"Grape\", value: \"grape\" },\n  { label: \"Strawberry\", value: \"strawberry\" },\n  { label: \"Mango\", value: \"mango\" },\n  { label: \"Pineapple\", value: \"pineapple\" },\n  { label: \"Kiwi\", value: \"kiwi\" },\n  { label: \"Peach\", value: \"peach\" },\n  { label: \"Pear\", value: \"pear\" },\n];\n\nexport default function Particle() {\n  return (\n    <Combobox items={items}>\n      <ComboboxTrigger render={<SelectButton />}>\n        <ComboboxValue placeholder=\"Select a fruit\" />\n      </ComboboxTrigger>\n      <ComboboxPopup aria-label=\"Select a fruit\">\n        <div className=\"border-b p-2\">\n          <ComboboxInput\n            className=\"rounded-md before:rounded-[calc(var(--radius-md)-1px)]\"\n            placeholder=\"Search fruits...\"\n            showTrigger={false}\n            startAddon={<SearchIcon />}\n          />\n        </div>\n        <ComboboxEmpty>No items found.</ComboboxEmpty>\n        <ComboboxList>\n          {(item) => (\n            <ComboboxItem key={item.value} value={item}>\n              {item.label}\n            </ComboboxItem>\n          )}\n        </ComboboxList>\n      </ComboboxPopup>\n    </Combobox>\n  );\n}\n",
      "type": "registry:block"
    }
  ],
  "meta": {
    "className": "**:data-[slot=preview]:w-full **:data-[slot=preview]:max-w-64"
  },
  "categories": [
    "combobox",
    "select"
  ],
  "type": "registry:block"
}