{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "collapsible7",
  "title": "Collapsible",
  "description": "Collapsible built with shadcn/ui.",
  "dependencies": [
    "lucide-react@0"
  ],
  "registryDependencies": [
    "button",
    "collapsible"
  ],
  "files": [
    {
      "path": "contents/components/collapsible/7/index.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { ChevronDownIcon } from \"lucide-react\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"@/components/ui/collapsible\";\nimport { Button } from \"@/components/ui/button\";\n\nconst items = [\n  {\n    id: 1,\n    title: \"What is this service?\",\n    description: \"Learn about our platform\",\n    content:\n      \"This is a comprehensive platform that provides various tools and features to help you manage your projects efficiently.\"\n  },\n  {\n    id: 2,\n    title: \"How do I get started?\",\n    description: \"Quick start guide\",\n    content:\n      \"To get started, simply create an account, verify your email, and follow the onboarding process. You'll be up and running in minutes.\"\n  },\n  {\n    id: 3,\n    title: \"What are the pricing plans?\",\n    description: \"View our pricing options\",\n    content:\n      \"We offer three pricing tiers: Basic (free), Pro ($29/month), and Enterprise (custom pricing). Each plan includes different features and limits.\"\n  },\n  {\n    id: 4,\n    title: \"How can I contact support?\",\n    description: \"Get help when you need it\",\n    content:\n      \"You can reach our support team via email at support@example.com, through our live chat, or by submitting a ticket in your dashboard.\"\n  }\n];\n\nexport default function CollapsibleComponent() {\n  const [openId, setOpenId] = useState<number | null>(null);\n\n  const handleToggle = (id: number) => {\n    setOpenId(openId === id ? null : id);\n  };\n\n  return (\n    <div className=\"w-full max-w-sm space-y-2\">\n      {items.map((item) => {\n        const isOpen = openId === item.id;\n        return (\n          <Collapsible\n            key={item.id}\n            open={isOpen}\n            onOpenChange={() => handleToggle(item.id)}\n            className=\"space-y-2\">\n            <div className=\"flex items-center justify-between rounded-md border px-4 py-3\">\n              <div className=\"space-y-1\">\n                <div className=\"text-sm font-semibold\">{item.title}</div>\n                <p className=\"text-muted-foreground text-xs\">{item.description}</p>\n              </div>\n              <CollapsibleTrigger asChild>\n                <Button variant=\"ghost\" size=\"sm\" className=\"w-9 p-0\">\n                  <ChevronDownIcon\n                    className={`h-4 w-4 transition-transform duration-200 ${isOpen ? \"rotate-180\" : \"\"}`}\n                  />\n                  <span className=\"sr-only\">Toggle</span>\n                </Button>\n              </CollapsibleTrigger>\n            </div>\n            <CollapsibleContent className=\"space-y-2\">\n              <div className=\"rounded-md border px-4 py-3 text-sm\">{item.content}</div>\n            </CollapsibleContent>\n          </Collapsible>\n        );\n      })}\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/collapsible7.tsx"
    }
  ],
  "type": "registry:component"
}