{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/select-35","type":"registry:component","title":"Select 35","description":"A React Aria Components listbox with single selection for currency options","dependencies":["react-aria-components"],"registryDependencies":["label"],"files":[{"path":"src/registry/new-york/components/select/select-35.tsx","content":"'use client'\n\nimport { ListBox, ListBoxItem } from 'react-aria-components'\n\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst listitems = [\n  { id: 'usd', label: 'USD (United States Dollar)' },\n  { id: 'eur', label: 'EUR (Euro)' },\n  { id: 'gbp', label: 'GBP (British Pound)', isDisabled: true },\n  { id: 'jpy', label: 'JPY (Japanese Yen)' }\n]\n\nconst ListboxSingleOptionDemo = () => {\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label>Listbox with single option selectable</Label>\n      <div className='border-input overflow-hidden rounded-md border'>\n        <ListBox\n          className='bg-background space-y-1 p-1 text-sm shadow-xs transition-[color,box-shadow]'\n          aria-label='Select framework'\n          selectionMode='single'\n          defaultSelectedKeys={['svelte']}\n        >\n          {listitems.map(item => (\n            <ListBoxItem\n              key={item.id}\n              className='data-selected:bg-accent data-selected:text-accent-foreground data-disabled:text-muted-foreground flex items-center justify-between rounded-sm px-2 py-1.5'\n              textValue={item.label}\n              isDisabled={item.isDisabled}\n            >\n              {item.label}\n            </ListBoxItem>\n          ))}\n        </ListBox>\n      </div>\n      <p className='text-muted-foreground text-xs' role='region' aria-live='polite'>\n        Built using{' '}\n        <a\n          href='https://react-spectrum.adobe.com/react-aria/ListBox.html'\n          className='hover:text-primary underline'\n          target='_blank'\n        >\n          React Aria\n        </a>\n      </p>\n    </div>\n  )\n}\n\nexport default ListboxSingleOptionDemo\n","type":"registry:component","target":"components/shadcn-studio/select/select-35.tsx"}]}