{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-01",
  "title": "Testimonials — Card Grid",
  "author": "SAASTRO <https://saastro.io>",
  "description": "Testimonial grid with avatar, name, role, and quote cards. Zero-JS Astro component.",
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/blocks/testimonials-01.astro",
      "content": "---\n/**\n * testimonials-01 — Grid de testimonios con avatar, nombre, rol y cita.\n * Bloque Astro puro: cero JS, cero dependencias. El avatar sin imagen cae a\n * iniciales calculadas en el frontmatter.\n */\ninterface Testimonial {\n  quote: string;\n  author: string;\n  role: string;\n  company?: string;\n  avatarUrl?: string;\n}\ninterface Props {\n  title?: string;\n  description?: string;\n  testimonials: Testimonial[];\n  class?: string;\n}\nconst { title, description, testimonials, class: className } = Astro.props;\n\nfunction getInitials(name: string): string {\n  return name\n    .split(' ')\n    .map((n) => n[0])\n    .join('')\n    .toUpperCase()\n    .slice(0, 2);\n}\n---\n\n<section class:list={['w-full px-6 py-24 md:py-32', className]}>\n  <div class=\"mx-auto max-w-6xl\">\n    {(title || description) && (\n      <div class=\"mx-auto mb-16 max-w-2xl text-center\">\n        {title && <h2 class=\"text-3xl font-bold tracking-tight sm:text-4xl\">{title}</h2>}\n        {description && <p class=\"mt-4 text-lg text-muted-foreground\">{description}</p>}\n      </div>\n    )}\n    <div class=\"grid gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n      {testimonials.map((testimonial) => (\n        <div class=\"flex flex-col justify-between rounded-xl border bg-card py-6 text-card-foreground shadow-sm\">\n          <div class=\"px-6\">\n            <p class=\"text-sm text-muted-foreground italic\">&ldquo;{testimonial.quote}&rdquo;</p>\n            <div class=\"mt-6 flex items-center gap-3\">\n              <span class=\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\">\n                {testimonial.avatarUrl ? (\n                  <img\n                    src={testimonial.avatarUrl}\n                    alt={testimonial.author}\n                    class=\"aspect-square h-full w-full object-cover\"\n                  />\n                ) : (\n                  <span class=\"flex h-full w-full items-center justify-center rounded-full bg-muted text-xs\">\n                    {getInitials(testimonial.author)}\n                  </span>\n                )}\n              </span>\n              <div>\n                <p class=\"text-sm font-semibold\">{testimonial.author}</p>\n                <p class=\"text-xs text-muted-foreground\">\n                  {testimonial.role}{testimonial.company && `, ${testimonial.company}`}\n                </p>\n              </div>\n            </div>\n          </div>\n        </div>\n      ))}\n    </div>\n  </div>\n</section>\n",
      "type": "registry:component",
      "target": "@components/blocks/testimonials-01.astro"
    }
  ],
  "meta": {
    "group": "Testimonials",
    "iframeHeight": "860px"
  },
  "docs": "Astro component — zero JS, no React required. Default import: `import Testimonials01 from '@/components/blocks/testimonials-01.astro'`. Props: title?, description?, testimonials [{quote, author, role, company?, avatarUrl?}], class?.",
  "categories": [
    "testimonials",
    "landing"
  ],
  "type": "registry:block"
}