{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "testimonials-07", "description": "Interactive testimonials with profile switcher", "registryDependencies": [ "avatar" ], "files": [ { "path": "creative-tim/blocks/testimonials-07/page.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\n\nconst TESTIMONIALS = [\n {\n image:\n \"https://images.unsplash.com/photo-1716662318479-a9c0f1cd1a0e?auto=format&fit=crop&q=80&w=400&h=400\",\n name: \"Sarah Johnson\",\n role: \"Product Designer\",\n quote:\n \"The attention to detail and component quality is outstanding. These UI blocks have significantly accelerated our design workflow and improved consistency across our products.\",\n },\n {\n image:\n \"https://images.unsplash.com/photo-1623853434105-8e7a72898180?auto=format&fit=crop&q=80&w=400&h=400\",\n name: \"Michael Chen\",\n role: \"Tech Lead at Stripe\",\n quote:\n \"Exceptional component library with excellent documentation. The customization options and TypeScript support make it perfect for enterprise applications. Highly recommend!\",\n },\n {\n image:\n \"https://images.unsplash.com/photo-1641906840000-4b88f1d44de6?auto=format&fit=crop&q=80&w=400&h=400\",\n name: \"Emma Rodriguez\",\n role: \"Frontend Developer\",\n quote:\n \"A game-changer for rapid prototyping and production. The components are production-ready, well-tested, and the design system is incredibly cohesive. Love it!\",\n },\n]\n\nexport default function TestimonialsBlock() {\n const [selectedTestimonial, setSelectedTestimonial] = React.useState(0)\n\n return (\n
\n
\n
\n

What Developers Say

\n

\n {TESTIMONIALS[selectedTestimonial].quote}\n

\n
\n

\n {TESTIMONIALS[selectedTestimonial].name}\n

\n

\n {TESTIMONIALS[selectedTestimonial].role}\n

\n
\n
\n {TESTIMONIALS.map((testimonial, index) => (\n
\n setSelectedTestimonial(index)}\n >\n \n \n {testimonial.name\n .split(\" \")\n .map((n) => n[0])\n .join(\"\")}\n \n \n
\n ))}\n
\n
\n
\n \n
\n
\n
\n )\n}\n", "type": "registry:page", "target": "app/testimonials-07/page.tsx" } ], "meta": { "iframeHeight": "600px", "container": "w-full bg-surface", "mobile": "component" }, "categories": [ "testimonials" ], "type": "registry:block" }