{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "disclosure-group-with-icon-example",
  "title": "Disclosure Group With Icon",
  "description": "disclosure-group-with-icon-example",
  "dependencies": [
    "@heroicons/react"
  ],
  "registryDependencies": [
    "https://intentui.com/r/disclosure-group"
  ],
  "files": [
    {
      "path": "src/components/examples/navigation/disclosure-group/disclosure-group-with-icon-example.tsx",
      "content": "\"use client\"\n\nimport { CheckIcon, ChevronRightIcon } from \"@heroicons/react/20/solid\"\nimport {\n  ArchiveBoxIcon,\n  ArrowTrendingUpIcon,\n  CheckCircleIcon,\n  ComputerDesktopIcon,\n  CpuChipIcon,\n  CreditCardIcon,\n  PencilSquareIcon,\n  PresentationChartBarIcon,\n  ShieldCheckIcon,\n  WrenchScrewdriverIcon,\n} from \"@heroicons/react/24/outline\"\nimport {\n  Disclosure,\n  DisclosureGroup,\n  DisclosurePanel,\n  DisclosureTrigger,\n} from \"@/components/ui/disclosure-group\"\n\nexport default function DisclosureGroupWithIconDemo() {\n  return (\n    <DisclosureGroup defaultExpandedKeys={[1]}>\n      {items.map((item, index) => (\n        <Disclosure key={index} id={index}>\n          <DisclosureTrigger>\n            <span className=\"flex items-center gap-x-2\">\n              <item.icon /> {item.title}\n            </span>\n          </DisclosureTrigger>\n          <DisclosurePanel>\n            <DisclosureGroup\n              className=\"**:data-[slot=disclosure-indicator]:hidden\"\n              allowsMultipleExpanded\n            >\n              {item.children.map((child, childIndex) => (\n                <Disclosure key={childIndex} id={childIndex}>\n                  <DisclosureTrigger className=\"group justify-start\">\n                    <span className=\"mr-2 flex items-center gap-x-2\">\n                      <ChevronRightIcon className=\"size-4 duration-300 group-aria-expanded:rotate-90\" />\n                      <child.icon />\n                    </span>\n                    {child.title}\n                  </DisclosureTrigger>\n                  <DisclosurePanel>{child.description}</DisclosurePanel>\n                </Disclosure>\n              ))}\n            </DisclosureGroup>\n          </DisclosurePanel>\n        </Disclosure>\n      ))}\n    </DisclosureGroup>\n  )\n}\n\nconst items = [\n  {\n    id: 1,\n    icon: ComputerDesktopIcon,\n    title: \"Computer Science Department\",\n    description: \"Explore our cutting-edge programs in computer science and technology.\",\n    children: [\n      {\n        id: 101,\n        icon: CpuChipIcon,\n        title: \"Artificial Intelligence\",\n        description: \"Courses on machine learning, neural networks, and deep learning.\",\n      },\n      {\n        id: 102,\n        icon: ShieldCheckIcon,\n        title: \"Cybersecurity\",\n        description: \"Programs focused on protecting information and systems.\",\n      },\n      {\n        id: 103,\n        icon: WrenchScrewdriverIcon,\n        title: \"Software Engineering\",\n        description: \"Learn best practices for designing and building software.\",\n      },\n    ],\n  },\n  {\n    id: 2,\n    icon: CreditCardIcon,\n    title: \"Business administration\",\n    description: \"Develop skills in management, finance, and entrepreneurship.\",\n    children: [\n      {\n        id: 201,\n        icon: PresentationChartBarIcon,\n        title: \"Marketing Strategies\",\n        description: \"Courses on digital marketing and customer engagement.\",\n      },\n      {\n        id: 202,\n        icon: ArrowTrendingUpIcon,\n        title: \"Financial Analysis\",\n        description: \"Learn techniques for financial decision-making and planning.\",\n      },\n      {\n        id: 203,\n        icon: CheckCircleIcon,\n        title: \"Entrepreneurship\",\n        description: \"Develop your business ideas and startup skills.\",\n      },\n    ],\n  },\n  {\n    id: 3,\n    icon: PencilSquareIcon,\n    title: \"Arts & Humanities Department\",\n    description: \"Dive into creativity and the study of human culture.\",\n    children: [\n      {\n        id: 301,\n        icon: PencilSquareIcon,\n        title: \"Creative Writing\",\n        description: \"Programs for aspiring authors and poets.\",\n      },\n      {\n        id: 302,\n        icon: CheckIcon,\n        title: \"Philosophy\",\n        description: \"Explore key questions about life, existence, and ethics.\",\n      },\n      {\n        id: 303,\n        icon: ArchiveBoxIcon,\n        title: \"Art History\",\n        description: \"Study the evolution and impact of art across cultures.\",\n      },\n    ],\n  },\n]\n",
      "type": "registry:page",
      "target": "app/disclosure-group-with-icon-example/page.tsx"
    }
  ],
  "type": "registry:page"
}