{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "combo-box-section-example",
  "title": "Combo Box Section",
  "description": "combo-box-section-example",
  "registryDependencies": [
    "https://intentui.com/r/combo-box",
    "https://intentui.com/r/field"
  ],
  "files": [
    {
      "path": "src/components/examples/pickers/combo-box/combo-box-section-example.tsx",
      "content": "'use client'\n\nimport {\n  ComboBox,\n  ComboBoxContent,\n  ComboBoxInput,\n  ComboBoxItem,\n  ComboBoxSection,\n} from '@/components/ui/combo-box'\nimport { Label } from '@/components/ui/field'\n\nexport default function ComboBoxSectionDemo() {\n  return (\n    <ComboBox>\n      <Label>Authors</Label>\n      <ComboBoxInput placeholder=\"Select a author\" />\n      <ComboBoxContent defaultSelectedKeys={[1]} items={movies}>\n        {(movie) => (\n          <ComboBoxSection title={movie.title} items={movie.genres}>\n            {(genre) => <ComboBoxItem textValue={genre.name}>{genre.name}</ComboBoxItem>}\n          </ComboBoxSection>\n        )}\n      </ComboBoxContent>\n    </ComboBox>\n  )\n}\n\nconst movies = [\n  {\n    id: 1,\n    title: 'Inception',\n    genres: [\n      {\n        id: 101,\n        name: 'Sci-Fi',\n      },\n      {\n        id: 102,\n        name: 'Thriller',\n      },\n    ],\n  },\n  {\n    id: 2,\n    title: 'Titanic',\n    genres: [\n      {\n        id: 201,\n        name: 'Romance',\n      },\n      {\n        id: 202,\n        name: 'Drama',\n      },\n    ],\n  },\n  {\n    id: 3,\n    title: 'The Matrix',\n    genres: [\n      {\n        id: 301,\n        name: 'Action',\n      },\n      {\n        id: 302,\n        name: 'Sci-Fi',\n      },\n    ],\n  },\n  {\n    id: 4,\n    title: 'Gladiator',\n    genres: [\n      {\n        id: 401,\n        name: 'Action',\n      },\n      {\n        id: 402,\n        name: 'Drama',\n      },\n    ],\n  },\n  {\n    id: 5,\n    title: 'Casablanca',\n    genres: [\n      {\n        id: 501,\n        name: 'Romance',\n      },\n      {\n        id: 502,\n        name: 'Drama',\n      },\n    ],\n  },\n]\n",
      "type": "registry:page",
      "target": "app/combo-box-section-example/page.tsx"
    }
  ],
  "type": "registry:page"
}