Reusable testimonial UI components for React applications.
// Source: https://github.com/ncdai/chanhdai.com | License: MIT | Copyright 2026 Chánh Đại
// Provided via justclaw.it.com; keep this notice with the code.
import type { ComponentProps } from "react"
import { cn } from "@/lib/utils"
export function Testimonial({ className, ...props }: ComponentProps<"figure">) {
return (
<figure
data-slot="testimonial"
className={cn("flex h-full flex-col", className)}
{...props}
/>
)
}
export function TestimonialQuote({
className,
...props
}: ComponentProps<"blockquote">) {
return (
<blockquote
data-slot="testimonial-quote"
className={cn(
"grow px-4 py-3 text-base text-pretty text-foreground",
className
)}
{...props}
/>
)
}
export function TestimonialAuthor({
classN
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key