{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog4",
  "title": "Featured Hero with Grid",
  "description": "Large featured article with side-by-side image and content, followed by a three-column grid of secondary posts. Read more buttons and author details included.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "avatar",
    "button"
  ],
  "files": [
    {
      "path": "registry/blog4/blog4.tsx",
      "content": "\"use client\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\n\nimport { ArrowRight } from \"lucide-react\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Author {\n  name: string;\n  title?: string;\n  avatar?: {\n    src: string;\n    alt: string;\n  };\n  href?: string;\n}\n\ninterface Tag {\n  label: string;\n  href?: string;\n}\n\ninterface BlogPost {\n  image: {\n    src: string;\n    alt: string;\n  };\n  title: string;\n  summary: string;\n  date?: string;\n  readTime?: string;\n  author?: Author;\n  tags?: Tag[];\n  href?: string;\n}\n\ninterface Blog4Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  posts?: BlogPost[];\n  labels?: {\n    readMoreLabel?: string;\n  };\n  className?: string;\n}\n\nexport const blog4Demo: Blog4Props = {\n  badge: { label: \"Blog\", variant: \"default\" },\n  heading: \"Featured Stories\",\n  description: \"Hand-picked articles from our editorial team.\",\n  labels: {\n    readMoreLabel: \"Read more\",\n  },\n  posts: [\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839259112-aaea03db3633?w=800&fit=crop\",\n        alt: \"Featured article\",\n      },\n      title: \"The Future of Design Systems in Modern Web Development\",\n      summary:\n        \"Exploring how design systems are evolving to meet the demands of increasingly complex web applications. Learn about the latest trends and best practices.\",\n      date: \"January 15, 2026\",\n      readTime: \"8 min read\",\n      author: {\n        name: \"Lisa Park\",\n        title: \"Senior Developer\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1595429935434-f2d6f6004424?w=100&fit=crop\",\n          alt: \"Lisa Park\",\n        },\n      },\n      tags: [\n        { label: \"Featured\", href: \"/block/post22\" },\n        { label: \"Design Systems\", href: \"/block/post22\" },\n      ],\n      href: \"/block/post22\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839258671-6495fdc188b3?w=800&fit=crop\",\n        alt: \"API design article\",\n      },\n      title: \"Building Scalable APIs with Modern Architecture\",\n      summary: \"Learn the best practices for designing APIs that can handle millions of requests.\",\n      date: \"January 12, 2026\",\n      readTime: \"12 min read\",\n      author: {\n        name: \"David Chen\",\n        title: \"Backend Engineer\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1613508862761-40728c924737?w=100&fit=crop\",\n          alt: \"David Chen\",\n        },\n      },\n      tags: [{ label: \"API\", href: \"/block/post5\" }],\n      href: \"/block/post5\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839258575-038fef381ee7?w=800&fit=crop\",\n        alt: \"React performance\",\n      },\n      title: \"React Performance Optimization Techniques\",\n      summary: \"Practical strategies to improve the performance of your React applications.\",\n      date: \"January 10, 2026\",\n      readTime: \"10 min read\",\n      author: {\n        name: \"Alex Turner\",\n        title: \"Frontend Lead\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1677531427892-239e0797cf60?w=100&fit=crop\",\n          alt: \"Alex Turner\",\n        },\n      },\n      tags: [{ label: \"React\", href: \"/block/post9\" }],\n      href: \"/block/post9\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839257946-4616bcfafec7?w=800&fit=crop\",\n        alt: \"TypeScript patterns\",\n      },\n      title: \"Advanced TypeScript Patterns for Large Applications\",\n      summary:\n        \"Discover advanced TypeScript techniques that will make your codebase more maintainable.\",\n      date: \"January 8, 2026\",\n      readTime: \"15 min read\",\n      author: {\n        name: \"Maria Santos\",\n        title: \"Tech Lead\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1731394726166-2817371bf003?w=100&fit=crop\",\n          alt: \"Maria Santos\",\n        },\n      },\n      tags: [{ label: \"TypeScript\", href: \"/block/post13\" }],\n      href: \"/block/post13\",\n    },\n  ],\n};\n\nexport function Blog4({ badge, heading, description, posts = [], labels, className }: Blog4Props) {\n  const featuredPost = posts[0];\n  const gridPosts = posts.slice(1);\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=\"mx-auto mb-12 max-w-3xl text-center\">\n            {badge && (\n              <div className=\"mb-4 flex justify-center\">\n                <Badge variant={badge.variant ?? \"default\"}>{badge.label}</Badge>\n              </div>\n            )}\n            {heading && <h2 className=\"text-2xl font-semibold md:text-4xl\">{heading}</h2>}\n            {description && (\n              <p className=\"mt-4 text-base text-muted-foreground md:text-lg\">{description}</p>\n            )}\n          </div>\n        )}\n\n        {featuredPost && (\n          <article className=\"group/blog4-featured mb-8 overflow-hidden rounded-md border bg-card\">\n            <div className=\"grid gap-0 md:grid-cols-2\">\n              <Link\n                href={featuredPost.href ?? \"#\"}\n                className=\"relative aspect-video overflow-hidden md:aspect-auto\"\n              >\n                <img\n                  className=\"absolute inset-0 size-full object-cover transition-transform duration-300 group-hover/blog4-featured:scale-105\"\n                  src={featuredPost.image.src}\n                  alt={featuredPost.image.alt}\n                />\n              </Link>\n\n              <div className=\"flex flex-col justify-center p-6 md:p-8\">\n                {featuredPost.tags && featuredPost.tags.length > 0 && (\n                  <div className=\"mb-4 flex flex-wrap gap-2\">\n                    {featuredPost.tags.map((tag, tagIndex) => (\n                      <Link key={tagIndex} href={tag.href ?? \"#\"}>\n                        <Badge variant=\"outline\">{tag.label}</Badge>\n                      </Link>\n                    ))}\n                  </div>\n                )}\n\n                <Link href={featuredPost.href ?? \"#\"}>\n                  <h3 className=\"mb-3 text-xl font-semibold transition-colors group-hover/blog4-featured:text-primary md:text-2xl\">\n                    {featuredPost.title}\n                  </h3>\n                </Link>\n\n                <p className=\"mb-6 text-muted-foreground\">{featuredPost.summary}</p>\n\n                <div className=\"flex items-center justify-between\">\n                  {featuredPost.author && (\n                    <div className=\"flex items-center gap-3\">\n                      {featuredPost.author.avatar && (\n                        <Avatar className=\"size-10\">\n                          <AvatarImage\n                            src={featuredPost.author.avatar.src}\n                            alt={featuredPost.author.avatar.alt}\n                            className=\"object-cover\"\n                          />\n                          <AvatarFallback>\n                            {featuredPost.author.name\n                              .split(\" \")\n                              .map((n) => n[0])\n                              .join(\"\")}\n                          </AvatarFallback>\n                        </Avatar>\n                      )}\n                      <div>\n                        <p className=\"text-sm font-medium\">{featuredPost.author.name}</p>\n                        {(featuredPost.date || featuredPost.readTime) && (\n                          <p className=\"text-xs text-muted-foreground\">\n                            {featuredPost.date}\n                            {featuredPost.date && featuredPost.readTime && \" · \"}\n                            {featuredPost.readTime}\n                          </p>\n                        )}\n                      </div>\n                    </div>\n                  )}\n\n                  <Button variant=\"ghost\" size=\"sm\" asChild>\n                    <Link href={featuredPost.href ?? \"#\"}>\n                      {labels?.readMoreLabel ?? \"Read more\"}\n                      <ArrowRight className=\"size-4\" />\n                    </Link>\n                  </Button>\n                </div>\n              </div>\n            </div>\n          </article>\n        )}\n\n        {gridPosts.length > 0 && (\n          <div className=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n            {gridPosts.map((post, index) => (\n              <article\n                key={index}\n                className=\"group/blog4 flex flex-col overflow-hidden rounded-md border bg-card\"\n              >\n                <Link href={post.href ?? \"#\"} className=\"relative aspect-video overflow-hidden\">\n                  <img\n                    className=\"absolute inset-0 size-full object-cover transition-transform duration-300 group-hover/blog4:scale-105\"\n                    src={post.image.src}\n                    alt={post.image.alt}\n                  />\n                </Link>\n\n                <div className=\"flex flex-1 flex-col p-5\">\n                  {post.tags && post.tags.length > 0 && (\n                    <div className=\"mb-3 flex flex-wrap gap-2\">\n                      {post.tags.slice(0, 2).map((tag, tagIndex) => (\n                        <Link key={tagIndex} href={tag.href ?? \"#\"}>\n                          <Badge variant=\"outline\" className=\"text-xs\">\n                            {tag.label}\n                          </Badge>\n                        </Link>\n                      ))}\n                    </div>\n                  )}\n\n                  <Link href={post.href ?? \"#\"}>\n                    <h3 className=\"mb-2 line-clamp-2 text-lg font-semibold transition-colors group-hover/blog4:text-primary\">\n                      {post.title}\n                    </h3>\n                  </Link>\n\n                  <p className=\"mb-4 line-clamp-2 flex-1 text-sm text-muted-foreground\">\n                    {post.summary}\n                  </p>\n\n                  <div className=\"mt-auto flex items-center gap-2\">\n                    {post.author?.avatar && (\n                      <Avatar className=\"size-6\">\n                        <AvatarImage\n                          src={post.author.avatar.src}\n                          alt={post.author.avatar.alt}\n                          className=\"object-cover\"\n                        />\n                        <AvatarFallback>\n                          {post.author.name\n                            .split(\" \")\n                            .map((n) => n[0])\n                            .join(\"\")}\n                        </AvatarFallback>\n                      </Avatar>\n                    )}\n                    {post.author && <span className=\"text-sm font-medium\">{post.author.name}</span>}\n                    {post.readTime && (\n                      <>\n                        <span className=\"text-muted-foreground\">&middot;</span>\n                        <span className=\"text-sm text-muted-foreground\">{post.readTime}</span>\n                      </>\n                    )}\n                  </div>\n                </div>\n              </article>\n            ))}\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/blog4.tsx"
    }
  ],
  "type": "registry:block"
}