Skip to content

Testimonials 3

Single large testimonial with a company logo and author.

03 / 07

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-3.json
Prefer 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.

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">
                    <blockquote>
                        <p className="text-lg font-semibold 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 gap-6">
                            <img className="h-7 w-fit dark:invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16.32.0/icons/nvidia.svg" alt="Nvidia Logo" height="20" width="auto" />
                            <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>
    )
}