{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "p-select-18",
  "description": "Select with description in options only",
  "registryDependencies": [
    "@coss/select"
  ],
  "files": [
    {
      "path": "registry/default/particles/p-select-18.tsx",
      "content": "\"use client\";\n\nimport {\n  Select,\n  SelectItem,\n  SelectPopup,\n  SelectTrigger,\n  SelectValue,\n} from \"@/registry/default/ui/select\";\n\nconst items = [\n  {\n    description: \"Ideal for individuals\",\n    label: \"Standard Plan\",\n    value: \"standard\",\n  },\n  { description: \"For professional users\", label: \"Pro Plan\", value: \"pro\" },\n  {\n    description: \"Built for large teams\",\n    label: \"Enterprise Plan\",\n    value: \"enterprise\",\n  },\n];\n\nexport default function Particle() {\n  return (\n    <Select\n      aria-label=\"Select plan\"\n      defaultValue={items[1]}\n      itemToStringValue={(item) => item.value}\n    >\n      <SelectTrigger>\n        <SelectValue>\n          {(item) => <span className=\"truncate\">{item.label}</span>}\n        </SelectValue>\n      </SelectTrigger>\n      <SelectPopup alignItemWithTrigger={false}>\n        {items.map((item) => (\n          <SelectItem key={item.value} value={item}>\n            <span className=\"flex flex-col\">\n              <span className=\"truncate\">{item.label}</span>\n              <span className=\"truncate text-muted-foreground text-xs\">\n                {item.description}\n              </span>\n            </span>\n          </SelectItem>\n        ))}\n      </SelectPopup>\n    </Select>\n  );\n}\n",
      "type": "registry:block"
    }
  ],
  "meta": {
    "className": "**:data-[slot=preview]:w-full **:data-[slot=preview]:max-w-64"
  },
  "categories": [
    "select"
  ],
  "type": "registry:block"
}