{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "select-validation-example",
  "title": "Select Validation",
  "description": "select-validation-example",
  "dependencies": [
    "react-aria-components"
  ],
  "registryDependencies": [
    "https://intentui.com/r/button",
    "https://intentui.com/r/field",
    "https://intentui.com/r/select"
  ],
  "files": [
    {
      "path": "src/components/examples/pickers/select/select-validation-example.tsx",
      "content": "'use client'\n\nimport { Form } from 'react-aria-components/Form'\nimport { Button } from '@/components/ui/button'\nimport { FieldError, Label } from '@/components/ui/field'\nimport { Select, SelectContent, SelectItem, SelectTrigger } from '@/components/ui/select'\n\nconst software = [\n  { id: 1, name: 'Adobe Photoshop' },\n  //...\n]\n\nexport default function SelectValidationDemo() {\n  return (\n    <Form onSubmit={(e) => e.preventDefault()} className=\"space-y-2\">\n      <Select placeholder=\"Select a software\" isRequired>\n        <Label>Design software</Label>\n        <SelectTrigger />\n        <SelectContent items={software}>\n          {(item) => (\n            <SelectItem id={item.id} textValue={item.name}>\n              {item.name}\n            </SelectItem>\n          )}\n        </SelectContent>\n        <FieldError />\n      </Select>\n      <Button type=\"submit\">Submit</Button>\n    </Form>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/select-validation-example/page.tsx"
    }
  ],
  "type": "registry:page"
}