{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature24",
  "title": "Interactive Workflow Preview",
  "description": "Hover-activated tabs on the left reveal detailed workflow previews with images, bullet points, and action links on the right. Perfect for showcasing product capabilities or multi-step features.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/feature24/feature24.tsx",
      "content": "\"use client\";\n\nimport {\n  Activity,\n  ArrowRight,\n  Check,\n  ChevronRight,\n  Search,\n  ShieldCheck,\n  Wand2,\n} from \"lucide-react\";\nimport { useMemo, useState } from \"react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Bullet {\n  text: string;\n}\n\ninterface Item {\n  id: string;\n  icon?: React.ReactNode;\n  eyebrow?: string;\n  title: string;\n  description?: string;\n  image?: {\n    src: string;\n    alt: string;\n  };\n  bullets?: Bullet[];\n  href?: string;\n  linkLabel?: string;\n}\n\ninterface Feature24Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  items?: Item[];\n  className?: string;\n}\n\nexport const feature24Demo: Feature24Props = {\n  badge: { label: \"Capabilities\", variant: \"default\" },\n  heading: \"One section, four workflows\",\n  description:\n    \"Hover to preview. Each workflow comes with a focused UI and a clear outcome—less hunting, more shipping.\",\n  items: [\n    {\n      id: \"workflow-1\",\n      icon: <Search className=\"size-5\" />,\n      eyebrow: \"Find\",\n      title: \"Search that understands intent\",\n      description: \"Filter across content, sections, and assets. Save views for repeatable audits.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1749703935846-9981088d6d39?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHx0b3BpYy1mZWVkfDV8TThqVmJMYlRSd3N8fGVufDB8fHx8fA%3D%3D\",\n        alt: \"Dashboard search\",\n      },\n      bullets: [\n        { text: \"Saved filters and shortcuts\" },\n        { text: \"Fast keyboard navigation\" },\n        { text: \"Index health indicators\" },\n      ],\n      href: \"#\",\n      linkLabel: \"Explore search\",\n    },\n    {\n      id: \"workflow-2\",\n      icon: <Wand2 className=\"size-5\" />,\n      eyebrow: \"Build\",\n      title: \"Reusable blocks, consistent pages\",\n      description:\n        \"Compose pages from section presets and keep styles consistent with smart defaults.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1749705319317-f9a2bf24fe3d?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwcm9maWxlLXBhZ2V8M3x8fGVufDB8fHx8fA%3D%3D\",\n        alt: \"Building UI\",\n      },\n      bullets: [\n        { text: \"Section presets with sensible spacing\" },\n        { text: \"Reusable components across pages\" },\n        { text: \"Fast preview without publish\" },\n      ],\n      href: \"#\",\n      linkLabel: \"See builder\",\n    },\n    {\n      id: \"workflow-3\",\n      icon: <ShieldCheck className=\"size-5\" />,\n      eyebrow: \"Protect\",\n      title: \"Publish with guardrails\",\n      description: \"Preflight checks for broken links, missing alt text, and incomplete metadata.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1749704015814-edb3a318abe5?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwcm9maWxlLXBhZ2V8Mjd8fHxlbnwwfHx8fHw%3D\",\n        alt: \"Quality checks\",\n      },\n      bullets: [\n        { text: \"Automated preflight validation\" },\n        { text: \"Role-based approvals\" },\n        { text: \"One-click rollback\" },\n      ],\n      href: \"#\",\n      linkLabel: \"View checks\",\n    },\n    {\n      id: \"workflow-4\",\n      icon: <Activity className=\"size-5\" />,\n      eyebrow: \"Measure\",\n      title: \"Know what worked\",\n      description: \"Track conversions and content performance without wiring up custom dashboards.\",\n      image: {\n        src: \"https://images.unsplash.com/photo-1749704002530-d076ba0ea2c9?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwcm9maWxlLXBhZ2V8MzV8fHxlbnwwfHx8fHw%3D\",\n        alt: \"Analytics overview\",\n      },\n      bullets: [\n        { text: \"Per-section click tracking\" },\n        { text: \"Form conversion insights\" },\n        { text: \"Performance alerts\" },\n      ],\n      href: \"#\",\n      linkLabel: \"Open insights\",\n    },\n  ],\n};\n\nexport function Feature24({ badge, heading, description, items = [], className }: Feature24Props) {\n  const [activeId, setActiveId] = useState(items[0]?.id || \"\");\n\n  const activeItem = useMemo(\n    () => items.find((i) => i.id === activeId) || items[0],\n    [items, activeId]\n  );\n\n  if (!items.length) return null;\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        {(badge || heading || description) && (\n          <div className=\"mb-12 flex flex-col gap-4 text-center\">\n            {badge && (\n              <div className=\"flex justify-center\">\n                <Badge variant={badge.variant ?? \"default\"}>{badge.label}</Badge>\n              </div>\n            )}\n            {heading && <h2 className=\"text-3xl font-semibold md:text-5xl\">{heading}</h2>}\n            {description && (\n              <p className=\"mx-auto max-w-2xl text-base md:text-lg text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        )}\n\n        {/* Mobile: stacked cards */}\n        <div className=\"grid gap-4 lg:hidden\">\n          {items.map((item) => {\n            const bullets = (item.bullets || [])\n              .map((b) => b.text)\n              .filter(Boolean)\n              .slice(0, 4);\n            return (\n              <div key={item.id} className=\"rounded-lg bg-muted p-6\">\n                <div className=\"flex items-start gap-3\">\n                  {item.icon && (\n                    <span className=\"inline-flex size-10 shrink-0 items-center justify-center rounded-lg bg-background\">\n                      {item.icon}\n                    </span>\n                  )}\n                  <div className=\"min-w-0\">\n                    {item.eyebrow && (\n                      <p className=\"text-xs font-medium text-muted-foreground\">{item.eyebrow}</p>\n                    )}\n                    <h3 className=\"text-lg font-semibold\">{item.title}</h3>\n                    {item.description && (\n                      <p className=\"mt-2 text-sm text-muted-foreground\">{item.description}</p>\n                    )}\n                  </div>\n                </div>\n\n                {item.image && (\n                  <div className=\"mt-5 overflow-hidden rounded-lg relative aspect-video\">\n                    <img\n                      className=\"absolute inset-0 size-full object-cover\"\n                      src={item.image.src}\n                      alt={item.image.alt}\n                    />\n                  </div>\n                )}\n\n                {bullets.length > 0 && (\n                  <ul className=\"mt-5 space-y-2\">\n                    {bullets.map((text, idx) => (\n                      <li key={idx} className=\"flex items-center gap-2 text-sm\">\n                        <Check className=\"w-3 h-3 text-muted-foreground\" />\n                        <span className=\"text-muted-foreground\">{text}</span>\n                      </li>\n                    ))}\n                  </ul>\n                )}\n\n                {item.href && (\n                  <div className=\"mt-5\">\n                    <Button variant=\"outline\" size=\"sm\" asChild>\n                      <a href={item.href} className=\"gap-2\">\n                        {item.linkLabel || \"Learn more\"}\n                        <ArrowRight className=\"w-4 h-4\" />\n                      </a>\n                    </Button>\n                  </div>\n                )}\n              </div>\n            );\n          })}\n        </div>\n\n        {/* Desktop: hover-to-preview */}\n        <div className=\"hidden gap-6 lg:grid lg:grid-cols-[0.9fr_1.1fr] lg:items-start\">\n          <div className=\"space-y-3\">\n            {items.map((item) => {\n              const isActive = item.id === activeItem?.id;\n              return (\n                <button\n                  key={item.id}\n                  type=\"button\"\n                  onMouseEnter={() => setActiveId(item.id)}\n                  onFocus={() => setActiveId(item.id)}\n                  onClick={() => setActiveId(item.id)}\n                  className={cn(\n                    \"w-full text-left rounded-lg border border-transparent bg-muted p-5 transition-colors\",\n                    \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n                    isActive && \"bg-background border-primary\"\n                  )}\n                >\n                  <div className=\"flex items-start gap-3\">\n                    <span\n                      className={cn(\n                        \"inline-flex size-10 shrink-0 items-center justify-center rounded-lg\",\n                        isActive\n                          ? \"bg-primary text-primary-foreground border-primary\"\n                          : \"bg-background\"\n                      )}\n                    >\n                      {item.icon}\n                    </span>\n                    <div className=\"min-w-0 flex-1\">\n                      <div className=\"flex items-center justify-between gap-3\">\n                        <div>\n                          {item.eyebrow && (\n                            <p className=\"text-xs font-medium text-muted-foreground\">\n                              {item.eyebrow}\n                            </p>\n                          )}\n                          <h3 className=\"text-base font-semibold\">{item.title}</h3>\n                        </div>\n                        <ChevronRight\n                          className={cn(\n                            \"w-5 h-5 shrink-0 opacity-40 transition-opacity\",\n                            isActive && \"opacity-100\"\n                          )}\n                        />\n                      </div>\n                      {item.description && (\n                        <p className=\"mt-2 text-sm line-clamp-2 text-muted-foreground\">\n                          {item.description}\n                        </p>\n                      )}\n                    </div>\n                  </div>\n                </button>\n              );\n            })}\n          </div>\n\n          <div className=\"rounded-lg bg-muted p-6\">\n            {activeItem && (\n              <div key={activeItem.id}>\n                {activeItem.image ? (\n                  <div className=\"overflow-hidden rounded-lg relative aspect-video\">\n                    <img\n                      className=\"absolute inset-0 size-full object-cover\"\n                      src={activeItem.image.src}\n                      alt={activeItem.image.alt}\n                    />\n                  </div>\n                ) : (\n                  <div className=\"aspect-video w-full rounded-lg bg-background\" />\n                )}\n\n                <div className=\"mt-6\">\n                  <div className=\"flex items-center justify-between gap-4\">\n                    <div>\n                      {activeItem.eyebrow && (\n                        <p className=\"text-xs font-medium text-muted-foreground\">\n                          {activeItem.eyebrow}\n                        </p>\n                      )}\n                      <h3 className=\"text-xl font-semibold\">{activeItem.title}</h3>\n                    </div>\n                  </div>\n\n                  {activeItem.description && (\n                    <p className=\"mt-2 text-sm md:text-base text-muted-foreground\">\n                      {activeItem.description}\n                    </p>\n                  )}\n\n                  {activeItem.bullets && activeItem.bullets.length > 0 && (\n                    <ul className=\"mt-5 grid gap-2 sm:grid-cols-2\">\n                      {activeItem.bullets\n                        .map((b) => b.text)\n                        .filter(Boolean)\n                        .slice(0, 6)\n                        .map((text, idx) => (\n                          <li key={idx} className=\"flex items-start gap-2 text-sm\">\n                            <Check className=\"w-3 h-3 mt-1 text-primary\" />\n                            <span className=\"text-muted-foreground\">{text}</span>\n                          </li>\n                        ))}\n                    </ul>\n                  )}\n\n                  {activeItem.href && (\n                    <div className=\"mt-6\">\n                      <Button variant=\"outline\" asChild>\n                        <Link href={activeItem.href} className=\"gap-2\">\n                          {activeItem.linkLabel || \"Learn more\"}\n                          <ArrowRight className=\"w-4 h-4\" />\n                        </Link>\n                      </Button>\n                    </div>\n                  )}\n                </div>\n              </div>\n            )}\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/feature24.tsx"
    }
  ],
  "type": "registry:block"
}