{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "select-details-description-example",
  "title": "Select Details Description",
  "description": "select-details-description-example",
  "registryDependencies": [
    "https://intentui.com/r/field",
    "https://intentui.com/r/select"
  ],
  "files": [
    {
      "path": "src/components/examples/pickers/select/select-details-description-example.tsx",
      "content": "'use client'\n\nimport { Description, Label } from '@/components/ui/field'\nimport {\n  Select,\n  SelectContent,\n  SelectDescription,\n  SelectItem,\n  SelectLabel,\n  SelectTrigger,\n} from '@/components/ui/select'\n\nexport default function SelectDetailsDescriptionDemo() {\n  return (\n    <Select className=\"max-w-2xs\" placeholder=\"Select a role\">\n      <Label>Roles</Label>\n      <SelectTrigger />\n      <SelectContent className=\"max-w-(--trigger-width)\" items={roles}>\n        {(item) => (\n          <SelectItem id={item.id} textValue={item.name}>\n            <SelectLabel>{item.name}</SelectLabel>\n            <SelectDescription>{item.description}</SelectDescription>\n          </SelectItem>\n        )}\n      </SelectContent>\n      <Description>Choose the appropriate role based on the level of access required.</Description>\n    </Select>\n  )\n}\n\nexport const roles = [\n  {\n    id: 1,\n    name: 'Admin',\n    description: 'Has full access to all resources',\n  },\n  {\n    id: 2,\n    name: 'Editor',\n    description: 'Can edit content but has limited access to settings',\n  },\n  {\n    id: 3,\n    name: 'Viewer',\n    description: 'Can view content but cannot make changes',\n  },\n  {\n    id: 4,\n    name: 'Contributor',\n    description: 'Can contribute content for review',\n  },\n  {\n    id: 5,\n    name: 'Guest',\n    description: 'Limited access, mostly for viewing purposes',\n  },\n]\n",
      "type": "registry:page",
      "target": "app/select-details-description-example/page.tsx"
    }
  ],
  "type": "registry:page"
}