★★★★★
Swapping our hand-rolled modals for these cut a week off the launch. The keyboard support just works.
Sample quote. Use real ones you have permission to publish.
Installation
$ pnpm dlx shadcn@latest add @synccn/testimonial-cardFirst time in this project? Connect synccn with one command.
Usage
import { TestimonialCard } from "@/components/ui/cards";<TestimonialCard quote="…" name="Riley" role="Designer" />API reference
Generated from the component's TypeScript types, so it always matches the code.
TestimonialCard
Quote card for customer stories. Use real quotes you have permission to publish.
PropTypeDescription
- quoterequired
React.ReactNodeThe quote.
- namerequired
stringWho said it.
- role
stringTheir role or company.
- rating
numberStars out of 5.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Components
- Avatar for
Avatar
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for Check, Heart, MapPin, MessageCircle, Repeat2, Share, Quote
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label, aria-pressed
More display
CardSurface with header, content and footer slots.BadgeSmall status label with an optional dot.AvatarImage with initials fallback, presence dot and stacked groups.KbdKeyboard key for shortcuts and hints.SeparatorHorizontal, vertical or labelled divider.AccordionExpanding sections with smooth height animation.