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-1.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 { Card, CardContent, CardHeader } from '@/components/ui/card'
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
export default function Testimonials() {
return (
<section className="py-16 md:py-32">
<div className="mx-auto max-w-6xl space-y-8 px-6 md:space-y-16">
<div className="relative z-10 mx-auto max-w-xl space-y-6 text-center md:space-y-12">
<h2 className="text-4xl font-medium lg:text-5xl">Build by makers, loved by thousand developers</h2>
<p>Lyra is evolving to be more than just the models. It supports an entire ecosystem — from products to the APIs and platforms helping developers and businesses innovate.</p>
</div>
<div className="grid gap-4 sm:grid-cols-2 md:grid-cols-4 lg:grid-rows-2">
<Card className="grid grid-rows-[auto_1fr] gap-8 sm:col-span-2 sm:p-6 lg:row-span-2">
<CardHeader>
<img
className="h-6 w-fit dark:invert"
src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/nike.svg"
alt="Nike Logo"
height="24"
width="auto"
/>
</CardHeader>
<CardContent>
<blockquote className="grid h-full grid-rows-[1fr_auto] gap-6">
<p className="text-xl font-medium">Lyra has transformed the way I develop web applications. Their extensive collection of UI components, blocks, and templates has significantly accelerated my workflow. The flexibility to customize every aspect allows me to create unique user experiences. Lyra is a game-changer for modern web development</p>
<div className="grid grid-cols-[auto_1fr] items-center gap-3">
<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>
<cite className="text-sm font-medium">Shekinah Tshiokufila</cite>
<span className="text-muted-foreground block text-sm">Software Engineer</span>
</div>
</div>
</blockquote>
</CardContent>
</Card>
<Card className="md:col-span-2">
<CardContent className="h-full pt-6">
<blockquote className="grid h-full grid-rows-[1fr_auto] gap-6">
<p className="text-xl font-medium">Lyra is really extraordinary and very practical, no need to break your head. A real gold mine.</p>
<div className="grid grid-cols-[auto_1fr] items-center gap-3">
<Avatar className="size-12">
<AvatarImage
src="https://randomuser.me/api/portraits/men/32.jpg"
alt="Jonathan Yombo"
height="400"
width="400"
loading="lazy"
/>
<AvatarFallback>JY</AvatarFallback>
</Avatar>
<div>
<cite className="text-sm font-medium">Jonathan Yombo</cite>
<span className="text-muted-foreground block text-sm">Software Engineer</span>
</div>
</div>
</blockquote>
</CardContent>
</Card>
<Card>
<CardContent className="h-full pt-6">
<blockquote className="grid h-full grid-rows-[1fr_auto] gap-6">
<p>Great work on this template. It is one of the best personal websites I have seen so far!</p>
<div className="grid items-center gap-3 [grid-template-columns:auto_1fr]">
<Avatar className="size-12">
<AvatarImage
src="https://randomuser.me/api/portraits/men/46.jpg"
alt="Yucel Faruksahan"
height="400"
width="400"
loading="lazy"
/>
<AvatarFallback>YF</AvatarFallback>
</Avatar>
<div>
<cite className="text-sm font-medium">Yucel Faruksahan</cite>
<span className="text-muted-foreground block text-sm">Creator, Tailkits</span>
</div>
</div>
</blockquote>
</CardContent>
</Card>
<Card className="card variant-mixed">
<CardContent className="h-full pt-6">
<blockquote className="grid h-full grid-rows-[1fr_auto] gap-6">
<p>Great work on this template. It is one of the best personal websites I have seen so far!</p>
<div className="grid grid-cols-[auto_1fr] gap-3">
<Avatar className="size-12">
<AvatarImage
src="https://randomuser.me/api/portraits/men/75.jpg"
alt="Rodrigo Aguilar"
height="400"
width="400"
loading="lazy"
/>
<AvatarFallback>YF</AvatarFallback>
</Avatar>
<div>
<p className="text-sm font-medium">Rodrigo Aguilar</p>
<span className="text-muted-foreground block text-sm">Creator, TailwindAwesome</span>
</div>
</div>
</blockquote>
</CardContent>
</Card>
</div>
</div>
</section>
)
}
More testimonials blocks
View all 7 →- Testimonials 202Testimonial cards in an asymmetric grid with a featured quote.
- Testimonials 303Single large testimonial with a company logo and author.
- Testimonials 404Single testimonial with an avatar and author details.
- 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.