Testimonial
Semantic written testimonial with quote, person, role, company, avatar and logo slots.
Design intent
Review and landing pages repeat the same quote hierarchy. Testimonial uses figure, blockquote and figcaption so the attribution is real structure instead of three styled paragraphs.
npx @slipstream-ui/cli@latest add testimonial“The shared component library changed how we ship. We would never have kept the design system consistent otherwise.”
Jane Doe
CEO, Blind & Shade
“The team is focused on practical collaboration, and most importantly, shipping work together.”
Alex Morgan
Partner, Rockwood Equity Partners
“Plain quotes scale up for hero sections.”
Sam Rivera
Founder, Northwind
“Compact cards fit dense pages.”
Lee Chen
Acme
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| quote | string | required | Testimonial copy without quotation marks. |
| name | string | required | Person or company name. |
| role | string | — | Role or title. |
| company | string | — | Company name. |
| avatar | ReactNode | — | Avatar slot. |
| logo | ReactNode | — | Brand or logo slot. |
| variant | 'card' | 'plain' | 'card' | Card surface or plain quote. |
| size | 'sm' | 'md' | 'lg' | 'md' | Quote scale. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't add quotation marks in the quote prop
The component renders the quotation marks. Duplicating them produces doubled punctuation.
tsx// Avoidquote="\"Quote\""
Accessibility
- Renders figure, blockquote and figcaption so the attribution is structural.
- The quote prop should not include quotation marks; the component adds them.
Composition
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.