{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog-3",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/blog-3.tsx",
      "content": "import { ArrowRight, ArrowUpRight } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Blog3Post {\n  image: string;\n  imageAlt: string;\n  readingTime: string;\n  title: string;\n  description: string;\n  cardCtaLabel: string;\n  href?: string;\n}\n\ninterface Blog3Header {\n  badge: string;\n  badgeIcon?: React.ReactNode;\n  heading: string;\n  description: string;\n}\n\ninterface Blog3Footer {\n  ctaText: string;\n  ctaHref: string;\n}\n\ninterface Blog3Props {\n  header: Blog3Header;\n  posts: Blog3Post[];\n  footer: Blog3Footer;\n  className?: string;\n  cardClassName?: string;\n  /** Render override for the footer CTA link */\n  renderCtaLink?: (props: {\n    href: string;\n    children: React.ReactNode;\n  }) => React.ReactNode;\n  /** Render override for individual card links */\n  renderCardLink?: (props: {\n    href: string;\n    children: React.ReactNode;\n  }) => React.ReactNode;\n}\n\nexport default function Blog3({\n  header,\n  posts,\n  footer,\n  className,\n  cardClassName,\n  renderCtaLink,\n  renderCardLink,\n}: Blog3Props) {\n  const ctaContent = (\n    <span className=\"group/cta text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 text-sm font-medium transition-colors\">\n      {footer.ctaText}\n      <ArrowUpRight className=\"size-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5 group-hover/cta:-translate-y-0.5\" />\n    </span>\n  );\n\n  return (\n    <section className={cn(\"bg-background  w-full px-4 py-8\", className)}>\n      <div className=\"mx-auto  flex max-w-2xl flex-col items-center gap-10 md:gap-14\">\n        <div className=\"flex flex-col items-center gap-3 text-center\">\n          <h2 className=\"text-foreground max-w-xl text-[1.75rem] leading-tight font-semibold tracking-tight sm:text-3xl md:text-4xl\">\n            {header.heading}\n          </h2>\n\n          <p className=\"text-muted-foreground max-w-md text-sm leading-relaxed\">\n            {header.description}\n          </p>\n        </div>\n\n        <div className=\"flex w-full flex-col gap-3\">\n          {posts.map((post, index) => {\n            const card = (\n              <article\n                key={index}\n                className={cn(\n                  \"group flex flex-col gap-2 overflow-hidden  transition-colors duration-300 sm:flex-row\",\n                  cardClassName,\n                )}\n              >\n                <div className=\"bg-muted rounded-4xl flex flex-1 flex-col gap-2 px-5 py-5 sm:py-6\">\n                  <span className=\"text-primary/80 text-sm font-medium\">\n                    {post.readingTime}\n                  </span>\n\n                  <h3 className=\"text-foreground text-lg leading-snug font-semibold\">\n                    {post.title}\n                  </h3>\n\n                  <p className=\"text-muted-foreground text-sm leading-normal text-pretty\">\n                    {post.description}\n                  </p>\n\n                  <div className=\"border-border mt-auto flex size-fit items-center rounded-4xl gap-1 border bg-white p-1 px-2 dark:bg-black\">\n                    <span className=\"text-foreground text-sm font-medium\">\n                      {post.cardCtaLabel}\n                    </span>\n                    <ArrowRight className=\"text-foreground size-3.5 transition-transform duration-200 group-hover:translate-x-0.5\" />\n                  </div>\n                </div>\n                <div className=\" relative sm:aspect-auto sm:w-44 md:w-48 rounded-4xl border border-border \">\n                  <img\n                    src={post.image}\n                    alt={post.imageAlt}\n                    className=\"size-full object-cover shadow-lg rounded-4xl\"\n                    loading=\"lazy\"\n                  />\n                </div>\n              </article>\n            );\n\n            if (renderCardLink && post.href) {\n              return (\n                <div key={index}>\n                  {renderCardLink({\n                    href: post.href,\n                    children: card,\n                  })}\n                </div>\n              );\n            }\n\n            if (post.href) {\n              return (\n                <a\n                  key={index}\n                  href={post.href}\n                  className=\"focus-visible:ring-primary rounded-2xl focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n                >\n                  {card}\n                </a>\n              );\n            }\n\n            return card;\n          })}\n        </div>\n        <div className=\"flex items-center justify-center pt-2\">\n          {renderCtaLink ? (\n            renderCtaLink({ href: footer.ctaHref, children: ctaContent })\n          ) : (\n            <a href={footer.ctaHref}>{ctaContent}</a>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/blog-3.tsx"
    }
  ],
  "type": "registry:ui"
}
