{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select-20",
  "title": "Select with error",
  "description": "An invalid field with the message that says how to fix it.",
  "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-20.tsx",
      "content": "import { Field, FieldError, 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 Select20() {\n  return (\n    <Field invalid className='w-full max-w-xs'>\n      <FieldLabel>Framework</FieldLabel>\n      <Select items={FRAMEWORKS} defaultValue='gatsby'>\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      <FieldError match>\n        Gatsby is not available on the free plan. Pick another framework.\n      </FieldError>\n    </Field>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "select"
  ],
  "type": "registry:component"
}