{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "usecase7",
  "title": "Solutions Accordion",
  "description": "Expandable accordion layout with icons, images, descriptions, and feature lists inside each panel. Perfect for detailed solution explanations with visual content.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge"
  ],
  "files": [
    {
      "path": "registry/usecase7/usecase7.tsx",
      "content": "\"use client\";\n\nimport { Bot, Check, ChevronDown, LineChart, Plug, Shield } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { cn } from \"@/lib/utils\";\nimport { useState } from \"react\";\n\ninterface UseCaseFeature {\n  id: string;\n  text: string;\n}\n\ninterface UseCaseItem {\n  id: string;\n  icon?: React.ReactNode;\n  title: string;\n  description: string;\n  image?: {\n    src: string;\n    alt: string;\n  };\n  features?: UseCaseFeature[];\n}\n\ninterface UseCase7Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  items: UseCaseItem[];\n  className?: string;\n}\n\nexport const usecase7Demo: UseCase7Props = {\n  badge: { label: \"Solutions\", variant: \"secondary\" },\n  heading: \"Explore Our Solutions\",\n  description: \"Click on each solution to learn more about how we can help your business grow.\",\n  items: [\n    {\n      id: \"automation\",\n      icon: <Bot className=\"size-5\" />,\n      title: \"Process Automation\",\n      description:\n        \"Automate repetitive tasks and workflows to save time and reduce errors. Our intelligent automation engine learns from your processes and suggests optimizations.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1556644424-2379c2803793?q=80&w=2938&auto=format&fit=crop\",\n        alt: \"Automation\",\n      },\n      features: [\n        { id: \"a1\", text: \"Visual workflow builder\" },\n        { id: \"a2\", text: \"AI-powered suggestions\" },\n        { id: \"a3\", text: \"Scheduled triggers\" },\n      ],\n    },\n    {\n      id: \"analytics\",\n      icon: <LineChart className=\"size-5\" />,\n      title: \"Advanced Analytics\",\n      description:\n        \"Gain deep insights into your data with real-time dashboards, custom reports, and predictive analytics powered by machine learning.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1601976323740-71540cb51569?q=80&w=2938&auto=format&fit=crop\",\n        alt: \"Analytics\",\n      },\n      features: [\n        { id: \"b1\", text: \"Real-time dashboards\" },\n        { id: \"b2\", text: \"Custom reports\" },\n        { id: \"b3\", text: \"Predictive insights\" },\n      ],\n    },\n    {\n      id: \"integration\",\n      icon: <Plug className=\"size-5\" />,\n      title: \"Seamless Integrations\",\n      description:\n        \"Connect with 200+ apps and services. Our pre-built connectors and flexible API make integration effortless.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1742412615444-8d8d8c66f94f?q=80&w=2962&auto=format&fit=crop\",\n        alt: \"Integrations\",\n      },\n      features: [\n        { id: \"c1\", text: \"200+ pre-built connectors\" },\n        { id: \"c2\", text: \"RESTful API\" },\n        { id: \"c3\", text: \"Webhooks support\" },\n      ],\n    },\n    {\n      id: \"security\",\n      icon: <Shield className=\"size-5\" />,\n      title: \"Enterprise Security\",\n      description:\n        \"Bank-grade security with end-to-end encryption, SSO, and compliance certifications including SOC 2 and GDPR.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1515114344263-dd52070dae35?w=900&auto=format&fit=crop&q=60\",\n        alt: \"Security\",\n      },\n      features: [\n        { id: \"d1\", text: \"End-to-end encryption\" },\n        { id: \"d2\", text: \"SSO & SAML\" },\n        { id: \"d3\", text: \"SOC 2 certified\" },\n      ],\n    },\n  ],\n};\n\nexport function UseCase7({ badge, heading, description, items, className }: UseCase7Props) {\n  const [expandedIndex, setExpandedIndex] = useState<number | null>(0);\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-6xl px-4 md:px-6\">\n        {/* Header */}\n        <div className=\"text-center mb-12\">\n          {badge?.label && (\n            <div className=\"mb-6 flex justify-center\">\n              <Badge variant={badge.variant ?? \"secondary\"}>{badge.label}</Badge>\n            </div>\n          )}\n          {heading && (\n            <h2 className=\"text-2xl md:text-4xl font-semibold text-balance max-w-4xl mx-auto\">\n              {heading}\n            </h2>\n          )}\n          {description && (\n            <p className=\"mt-4 text-base sm:text-lg text-muted-foreground text-balance max-w-3xl mx-auto\">\n              {description}\n            </p>\n          )}\n        </div>\n\n        {/* Accordion */}\n        <div className=\"max-w-4xl mx-auto space-y-3\">\n          {items.map((item, index) => {\n            const isExpanded = expandedIndex === index;\n            return (\n              <div\n                key={item.id}\n                className={cn(\n                  \"rounded-lg border overflow-hidden transition-all duration-300 border-foreground/10\",\n                  isExpanded && \"bg-foreground/[0.02]\"\n                )}\n              >\n                {/* Accordion Header */}\n                <button\n                  type=\"button\"\n                  onClick={() => setExpandedIndex(isExpanded ? null : index)}\n                  className=\"w-full flex items-center justify-between p-5 text-left cursor-pointer transition-colors hover:bg-foreground/[0.02]\"\n                >\n                  <div className=\"flex items-center gap-4\">\n                    {item.icon && (\n                      <span className=\"flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center bg-primary/10 text-primary group-hover/usecase7:bg-primary group-hover/usecase7:text-background\">\n                        {item.icon}\n                      </span>\n                    )}\n                    <span className=\"text-lg font-semibold group-hover/usecase7:text-foreground\">\n                      {item.title}\n                    </span>\n                  </div>\n                  <ChevronDown\n                    className={cn(\n                      \"size-5 transition-transform duration-300 text-muted-foreground\",\n                      isExpanded && \"rotate-180\"\n                    )}\n                  />\n                </button>\n\n                {/* Accordion Content */}\n                <div\n                  className={cn(\n                    \"grid transition-all duration-300\",\n                    isExpanded ? \"grid-rows-[1fr] opacity-100\" : \"grid-rows-[0fr] opacity-0\"\n                  )}\n                >\n                  <div className=\"overflow-hidden\">\n                    <div className=\"px-5 pb-5 space-y-4\">\n                      <div className=\"grid md:grid-cols-2 gap-6\">\n                        {/* Image */}\n                        {item.image && (\n                          <div className=\"aspect-video rounded-lg overflow-hidden\">\n                            <img\n                              src={item.image.src}\n                              alt={item.image.alt}\n                              width={800}\n                              height={450}\n                              className=\"w-full h-full object-cover\"\n                            />\n                          </div>\n                        )}\n\n                        {/* Content */}\n                        <div className=\"space-y-4\">\n                          <p className=\"text-muted-foreground text-base md:text-lg\">\n                            {item.description}\n                          </p>\n\n                          {item.features && item.features.length > 0 && (\n                            <ul className=\"space-y-1.5\">\n                              {item.features.map((feature) => (\n                                <li\n                                  key={feature.id}\n                                  className=\"flex items-center gap-2 text-base text-muted-foreground\"\n                                >\n                                  <Check className=\"size-4 text-primary flex-shrink-0\" />\n                                  <span>{feature.text}</span>\n                                </li>\n                              ))}\n                            </ul>\n                          )}\n                        </div>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/usecase7.tsx"
    }
  ],
  "type": "registry:block"
}