Installation
Run this in a project that already uses shadcn/ui. The CLI adds the block, its components and npm dependencies.
pnpm dlx shadcn@latest add https://ui.sumansharma.info.np/r/testimonials-4.jsonPrefer to iterate with AI?Open in
Usage
The CLI writes the block to components/testimonials.tsx. Import it anywhere:
Loading...
Source
The CLI writes this component to components/testimonials.tsx.
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
export default function TestimonialsSection() {
return (
<section className="py-16 md:py-32">
<div className="mx-auto max-w-5xl px-6">
<div className="mx-auto max-w-2xl text-center">
<blockquote>
<p className="text-lg font-medium sm:text-xl md:text-3xl">Using Lyra has been like unlocking a secret design superpower. It's the perfect fusion of simplicity and versatility, enabling us to create UIs that are as stunning as they are user-friendly.</p>
<div className="mt-12 flex items-center justify-center gap-6">
<Avatar className="size-12">
<AvatarImage src="https://randomuser.me/api/portraits/women/44.jpg" alt="Shekinah Tshiokufila" height="400" width="400" loading="lazy" />
<AvatarFallback>ST</AvatarFallback>
</Avatar>
<div className="space-y-1 border-l pl-6">
<cite className="font-medium">Maya Chen</cite>
<span className="text-muted-foreground block text-sm">CEO, Nvidia</span>
</div>
</div>
</blockquote>
</div>
</div>
</section>
)
}
More testimonials blocks
View all 7 →- Testimonials 101Bento grid of testimonial cards with avatars and company logos.
- Testimonials 202Testimonial cards in an asymmetric grid with a featured quote.
- Testimonials 303Single large testimonial with a company logo and author.
- Testimonials 505Masonry wall of short community testimonials.
- Testimonials 606Multi-column testimonial wall with avatars and handles.
- Testimonials 707Animated testimonial carousel with photos and navigation controls.