Installation
npx shadcn@latest add @pixeldosa/customer-proofRequires `cn` at `@/lib/utils`. Use permissioned quotes and verifiable metrics, and always provide attribution. The carousel wraps previous and next navigation across the supplied stories.
Usage
<CustomerProof
title="Trusted by teams doing meaningful work"
stories={[
{
id: "northstar",
quote: "We can see what matters and what needs attention.",
author: "Jordan Lee",
role: "Head of Product",
company: "Northstar",
metric: "2×",
metricLabel: "faster planning cycles",
},
]}
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Optional section heading. |
stories | CustomerStory[] | — | Attributed stories with optional role, company, metric, and metric label. |
emphasis | "quote" | "metric" | "quote" | Content emphasis preset. |
className | string | — | Extra section classes. |
why it's built this way
Engineering Notes
Keeps attribution, quote, and metric in one semantic figure so evidence is not separated from its source. Previous and Next are explicit buttons rather than autoplay or a swipe-only carousel, which keeps browsing under visitor control and available to keyboard users. A one-story collection omits unnecessary controls, and an empty collection gets an explicit fallback.
how it moves, and when it doesn't
Motion Notes
Story changes are immediate and do not auto-advance; testimonials are evidence that visitors may need time to read, so timed motion would reduce comprehension. The live position indicator reports which story is active. No motion is used, so reduced-motion preferences do not remove or delay content.