✨ Publier v1 is live — a polished docs platform built for the open web.
Skip to content

TestimonialCard

Single testimonial card with quote, author, optional role, company, and avatar.

The TestimonialCard component from @publier/shell renders a single customer testimonial. Use it standalone or inside a grid on a marketing page.

Usage

import { TestimonialCard } from '@publier/shell/components';
<TestimonialCard
quote="We replaced our docs stack with Publier in an afternoon."
author="Grace Hopper"
role="VP Engineering"
company="Acme Corp"
avatarUrl="/testimonials/grace.jpg"
/>

Props

PropTypeDefaultDescription
quotestringrequiredThe testimonial body.
authorstringrequiredAuthor’s full name.
rolestringundefinedAuthor’s role or title.
companystringundefinedCompany name.
avatarUrlstringundefinedOptional avatar URL. Rendered at 40×40 px with loading="lazy".

Behaviour

  • Renders as <figure> with the quote in a <blockquote> and author details in <figcaption>.
  • When both role and company are set, they render as "{role}, {company}". When only one is set, only that one renders.
  • A decorative quote glyph is rendered above the quote.