{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/select-30","type":"registry:component","title":"Select 30","description":"A country select dropdown with flag images for each country option","registryDependencies":["label","select"],"files":[{"path":"src/registry/new-york/components/select/select-30.tsx","content":"import { useId } from 'react'\n\nimport { Label } from '@/registry/new-york/ui/label'\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/registry/new-york/ui/select'\n\nconst countries = [\n  {\n    value: '1',\n    label: 'India',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/india.png'\n  },\n  {\n    value: '2',\n    label: 'China',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/china.png'\n  },\n  {\n    value: '3',\n    label: 'Monaco',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/monaco.png'\n  },\n  {\n    value: '4',\n    label: 'Serbia',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/serbia.png'\n  },\n  {\n    value: '5',\n    label: 'Romania',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/romania.png'\n  },\n  {\n    value: '6',\n    label: 'Mayotte',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/mayotte.png'\n  },\n  {\n    value: '7',\n    label: 'Iraq',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/iraq.png'\n  },\n  {\n    value: '8',\n    label: 'Syria',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/syria.png'\n  },\n  {\n    value: '9',\n    label: 'Korea',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/korea.png'\n  },\n  {\n    value: '10',\n    label: 'Zimbabwe',\n    flag: 'https://cdn.shadcnstudio.com/ss-assets/flags/zimbabwe.png'\n  }\n]\n\nconst SelectWithFlagsDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label htmlFor={id}>Options with flag</Label>\n      <Select defaultValue='1'>\n        <SelectTrigger id={id} className='w-full'>\n          <SelectValue placeholder='Select framework' />\n        </SelectTrigger>\n        <SelectContent className='max-h-100'>\n          {countries.map(country => (\n            <SelectItem key={country.value} value={country.value}>\n              <img src={country.flag} alt={`${country.label} flag`} className='h-4 w-5' />{' '}\n              <span className='truncate'>{country.label}</span>\n            </SelectItem>\n          ))}\n        </SelectContent>\n      </Select>\n    </div>\n  )\n}\n\nexport default SelectWithFlagsDemo\n","type":"registry:component","target":"components/shadcn-studio/select/select-30.tsx"}]}