{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select-14",
  "title": "Native select with inset label",
  "description": "The label lives inside the field, above the value.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/recipes.json",
    "https://ui.ndekocode.dev/r/select-native.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/select/select-14.tsx",
      "content": "import { useId } from 'react';\n\nimport { CONTROL_RECIPE } from '@/registry/ndeko/lib/recipes';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { SelectNative } from '@/registry/ndeko/ui/select-native';\n\nconst INSET_FIELD = cn(\n  CONTROL_RECIPE,\n  'flex max-w-xs flex-col pt-2',\n  'focus-within:border-foreground/30 focus-within:ring-ring/25 focus-within:ring-[3px]',\n  'has-disabled:cursor-not-allowed has-disabled:opacity-50'\n);\n\nexport default function Select14() {\n  const id = useId();\n\n  return (\n    <div className={INSET_FIELD}>\n      <label htmlFor={id} className='px-2.5 text-xs font-medium'>\n        Framework\n      </label>\n      <SelectNative\n        id={id}\n        defaultValue=''\n        className='h-7 bg-transparent shadow-none ring-0 focus-visible:border-transparent focus-visible:ring-0 dark:bg-transparent dark:focus-visible:border-transparent'\n      >\n        <option value='' disabled>\n          Pick a framework\n        </option>\n        <option value='react'>React</option>\n        <option value='nextjs'>Next.js</option>\n        <option value='astro'>Astro</option>\n        <option value='gatsby'>Gatsby</option>\n      </SelectNative>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "select"
  ],
  "type": "registry:component"
}