VideoTestimonial
Customer-proof video in a card: aspect-video frame with native controls (or a custom embed), avatar attribution, quote and transcript slot. Never autoplays.
Design intent
VideoTestimonial pairs customer-proof video with the attribution and quote that make it persuasive. It renders native <video controls> (or a consumer embed) so playback is keyboard accessible and never autoplays, and reserves an explicit transcript slot because WCAG expects a text alternative for meaningful video.
npx @slipstream-ui/cli@latest add video-testimonial
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | Video file URL rendered with native controls and preload="none". |
| poster | string | — | Poster frame before playback; frame image when src is absent. |
| name | string | — | Person quoted — also labels the video region. |
| role | string | — | Role or title. |
| company | string | — | Company or organization name. |
| avatarSrc | string | — | Avatar image URL through Avatar’s fallback chain. |
| avatarFallback | ReactNode | — | Fallback content when avatarSrc is absent or fails. |
| quote | string | — | Testimonial copy as a blockquote under the attribution. |
| transcript | ReactNode | — | Transcript link or inline text — provide one for WCAG coverage. |
| children | ReactNode | — | Custom embed rendered inside the frame instead of src. |
| className | string | — | Additional CSS classes to apply. |
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 autoplay or hide controls
The component never sets autoplay and always renders controls. For custom embeds, keep equivalent user control — a muted autoplaying background loop is not a testimonial.
tsx// Avoid<video src="..." autoPlay loop muted />// Prefer<VideoTestimonial src="..." name="..." transcript={...} />Don't skip the transcript
Meaningful video needs a text alternative. Provide transcript as a link to a transcript page or inline text.
tsx// Avoid<VideoTestimonial src="demo.mp4" name="Sam" />// Prefer<VideoTestimonial src="demo.mp4" name="Sam" transcript={<a href="/transcripts/demo">Transcript</a>} />
Accessibility
- Native <video controls> is fully keyboard operable; custom embeds must provide equivalent controls.
- The transcript slot is the text alternative WCAG expects for meaningful video.
- The frame carries aria-label={name} so the video region has an accessible name.
Content guidelines
Quotes
- Use first-person customer language, not marketing copy
- Keep quotes under ~30 words for the card
- Always attribute: name, role and company
Good examples
- It cut our review time in half.
- We shipped the integration in a day.
Bad examples
- Best product ever!!!
- Game changer
Composition
Compose with Testimonial: Use Testimonial for written quotes; VideoTestimonial adds the video frame
<VideoTestimonial ... /> vs <Testimonial quote="..." name="..." />
Compose with Avatar: avatarSrc renders through Avatar internally; pass a composed Avatar via avatarFallback content when you need custom fallbacks
<VideoTestimonial avatarSrc="/ada.jpg" name="Ada" ... />
Related components: Testimonial, Media, Avatar, AudioEmbed
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.