{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-4",
  "title": "Star Rated Review Cards",
  "description": "Star-rated testimonial review cards in a responsive grid, each leading with a five-star rating row above the quote and a grayscale avatar.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "avatar",
    "card"
  ],
  "files": [
    {
      "path": "registry/blocks/testimonials/4/testimonials-block.tsx",
      "content": "import { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Card, CardContent, CardFooter } from \"@/components/ui/card\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nconst testimonials = [\n  {\n    rating: 5,\n    quote:\n      \"Setup took minutes, not days. Every block dropped in clean and matched our brand out of the box — our marketing site shipped a week early.\",\n    name: \"Elena Duarte\",\n    role: \"Head of Growth\",\n    company: \"Northwind\",\n    avatar: \"https://i.pravatar.cc/150?img=45\",\n  },\n  {\n    rating: 5,\n    quote:\n      \"The quality bar is unreal for the price. Accessible, responsive, and consistent across light and dark without a single override.\",\n    name: \"Marcus Feld\",\n    role: \"Frontend Lead\",\n    company: \"Loopline\",\n    avatar: \"https://i.pravatar.cc/150?img=13\",\n  },\n  {\n    rating: 4,\n    quote:\n      \"We replaced a pile of one-off components with these blocks and our design finally feels intentional everywhere.\",\n    name: \"Priya Nair\",\n    role: \"Product Designer\",\n    company: \"Vela\",\n    avatar: \"https://i.pravatar.cc/150?img=32\",\n  },\n  {\n    rating: 5,\n    quote:\n      \"Onboarding a new engineer used to mean explaining our layout system. Now they just compose blocks and ship.\",\n    name: \"Tomás Rivera\",\n    role: \"Engineering Manager\",\n    company: \"Basecoat\",\n    avatar: \"https://i.pravatar.cc/150?img=52\",\n  },\n  {\n    rating: 5,\n    quote:\n      \"Support requests about broken UI basically vanished. Everything is polished and behaves the way you expect.\",\n    name: \"Hannah Osei\",\n    role: \"Founder\",\n    company: \"Fieldkit\",\n    avatar: \"https://i.pravatar.cc/150?img=27\",\n  },\n  {\n    rating: 5,\n    quote:\n      \"It's the fastest we've ever moved from idea to a live, credible-looking product page. Worth every minute saved.\",\n    name: \"Yuki Tanaka\",\n    role: \"CTO\",\n    company: \"Harbor\",\n    avatar: \"https://i.pravatar.cc/150?img=15\",\n  },\n]\n\nfunction getInitials(name: string) {\n  return name\n    .split(\" \")\n    .map((part) => part[0])\n    .join(\"\")\n}\n\nfunction Rating({ value }: { value: number }) {\n  return (\n    <div\n      className=\"flex items-center gap-0.5\"\n      role=\"img\"\n      aria-label={`${value} out of 5`}\n    >\n      {Array.from({ length: 5 }).map((_, index) => (\n        <IconPlaceholder\n          lucide=\"Star\"\n          tabler=\"IconStar\"\n          hugeicons=\"StarIcon\"\n          phosphor=\"Star\"\n          remixicon=\"RiStarFill\"\n          key={index}\n          aria-hidden=\"true\"\n          className={\n            index < value ? \"size-4 text-foreground\" : \"size-4 text-border\"\n          }\n        />\n      ))}\n    </div>\n  )\n}\n\nexport default function TestimonialsBlock() {\n  return (\n    <section className=\"flex w-full items-center justify-center bg-background px-6 py-20 text-foreground\">\n      <div className=\"mx-auto w-full max-w-5xl\">\n        <div className=\"mx-auto max-w-xl text-center\">\n          <span className=\"inline-block rounded-md border border-border px-3 py-1 text-xs font-semibold tracking-widest text-muted-foreground uppercase\">\n            Testimonials\n          </span>\n          <h2 className=\"mt-4 font-heading text-4xl font-bold tracking-tight sm:text-5xl\">\n            Rated by the teams who ship\n          </h2>\n          <p className=\"mt-4 text-base text-muted-foreground\">\n            Thousands of engineers, designers, and founders trust Acme to build\n            their product surfaces.\n          </p>\n        </div>\n\n        <div className=\"mt-14 grid grid-cols-1 gap-px overflow-hidden rounded-xl border border-border bg-border sm:grid-cols-2 lg:grid-cols-3\">\n          {testimonials.map(\n            ({ rating, quote, name, role, company, avatar }) => (\n              <Card\n                key={name}\n                className=\"h-full border-0 bg-card ring-0 transition-colors duration-200 [--card-spacing:--spacing(6)] hover:bg-muted\"\n              >\n                <CardContent className=\"flex flex-1 flex-col gap-4\">\n                  <Rating value={rating} />\n                  <blockquote className=\"flex-1 text-sm leading-relaxed text-foreground\">\n                    &ldquo;{quote}&rdquo;\n                  </blockquote>\n                </CardContent>\n\n                <CardFooter className=\"gap-3 border-border\">\n                  <Avatar className=\"size-9 border border-border\">\n                    <AvatarImage\n                      src={avatar}\n                      alt={name}\n                      className=\"grayscale\"\n                    />\n                    <AvatarFallback className=\"text-xs font-semibold\">\n                      {getInitials(name)}\n                    </AvatarFallback>\n                  </Avatar>\n                  <span className=\"flex flex-col gap-0.5\">\n                    <span className=\"text-sm font-semibold text-foreground\">\n                      {name}\n                    </span>\n                    <span className=\"text-xs text-muted-foreground\">\n                      {role},{\" \"}\n                      <span className=\"font-medium text-foreground\">\n                        {company}\n                      </span>\n                    </span>\n                  </span>\n                </CardFooter>\n              </Card>\n            )\n          )}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/testimonials-4.tsx"
    }
  ],
  "meta": {
    "height": "923px",
    "tier": "free"
  },
  "categories": [
    "testimonials"
  ],
  "type": "registry:block"
}