{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select-28",
  "title": "Select with floating label",
  "description": "The label sits on the top edge of the trigger.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/field.json",
    "https://ui.ndekocode.dev/r/select.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/select/select-28.tsx",
      "content": "import { Field, FieldLabel } from '@/registry/ndeko/ui/field';\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from '@/registry/ndeko/ui/select';\n\nconst FRAMEWORKS = [\n  { value: 'react', label: 'React' },\n  { value: 'nextjs', label: 'Next.js' },\n  { value: 'astro', label: 'Astro' },\n  { value: 'gatsby', label: 'Gatsby' },\n];\n\nexport default function Select28() {\n  return (\n    <Field className='relative w-full max-w-xs'>\n      <FieldLabel className='bg-card absolute start-1.5 top-0 z-10 -translate-y-1/2 px-1 text-xs'>\n        Framework\n      </FieldLabel>\n      <Select items={FRAMEWORKS}>\n        <SelectTrigger>\n          <SelectValue placeholder='Pick a framework' />\n        </SelectTrigger>\n        <SelectContent>\n          {FRAMEWORKS.map((framework) => (\n            <SelectItem key={framework.value} value={framework.value}>\n              {framework.label}\n            </SelectItem>\n          ))}\n        </SelectContent>\n      </Select>\n    </Field>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "select"
  ],
  "type": "registry:component"
}