{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "list-box-description-example",
  "title": "List Box Description",
  "description": "list-box-description-example",
  "dependencies": [
    "react-aria-components"
  ],
  "registryDependencies": [
    "https://intentui.com/r/list-box"
  ],
  "files": [
    {
      "path": "src/components/examples/collections/list-box/list-box-description-example.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport type { Selection } from 'react-aria-components/GridList'\nimport { ListBox, ListBoxDescription, ListBoxItem, ListBoxLabel } from '@/components/ui/list-box'\n\nexport default function ListBoxDescriptionDemo() {\n  const [selected, setSelected] = useState<Selection>(new Set([1]))\n  return (\n    <ListBox\n      className=\"max-w-2xs\"\n      selectedKeys={selected}\n      onSelectionChange={setSelected}\n      items={roles}\n      aria-label=\"Bands\"\n    >\n      {(item) => (\n        <ListBoxItem id={item.id} textValue={item.name}>\n          <ListBoxLabel>{item.name}</ListBoxLabel>\n          <ListBoxDescription>{item.description}</ListBoxDescription>\n        </ListBoxItem>\n      )}\n    </ListBox>\n  )\n}\n\nconst 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/list-box-description-example/page.tsx"
    }
  ],
  "type": "registry:page"
}