{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "testimonial-card", "title": "Testimonial Card", "description": "Quote card with avatar, name, role, company and star rating", "files": [ { "path": "registry/pioneerui/testimonial-card.tsx", "content": "import React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface TestimonialCardProps extends React.HTMLAttributes {\n quote: string\n name: string\n role?: string\n company?: string\n avatar?: string\n rating?: number\n variant?: \"default\" | \"bordered\" | \"elevated\"\n}\n\nfunction StarRating({ rating }: { rating: number }) {\n return (\n
\n {Array.from({ length: 5 }).map((_, i) => (\n \n \n \n ))}\n
\n )\n}\n\nexport function TestimonialCard({\n quote,\n name,\n role,\n company,\n avatar,\n rating,\n variant = \"default\",\n className,\n ...props\n}: TestimonialCardProps) {\n return (\n \n {rating !== undefined && }\n
\n “{quote}”\n
\n
\n {avatar ? (\n \n ) : (\n
\n {name.charAt(0).toUpperCase()}\n
\n )}\n
\n

{name}

\n {(role || company) && (\n

\n {role}\n {role && company && \" ยท \"}\n {company}\n

\n )}\n
\n
\n \n )\n}\n", "type": "registry:ui", "target": "components/pioneerui/testimonial-card.tsx" } ], "type": "registry:ui" }