Skip to content
English
Customer quotes comes with Pro. Its preview shows once you unlock it.

Usage

import { LandingTestimonials } from './LandingTestimonials.jsx'

<LandingTestimonials
  locale="en"
  rating={4.9}
  reviews={2418}
  filters={[{ id: 'all', name: 'All' }, { id: 'work', name: 'Offices' }]}
  quotes={quotes}   // [{ id, name, role, rating, quote, uses: ['work'], featured?, stat?, statIcon? }]
/>

Props

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text and sample quotes.
quotesArray<{ id, name, role, rating, quote, uses: string[], featured?, stat?, statIcon? }>sample quotesThe quotes. `uses` are the filter ids a quote shows under; `featured` marks the large one, `stat` a short fact under it with `statIcon` (a kit icon name, null for none); an empty array shows the empty state.
filtersArray<{ id, name }>sample use casesThe filter chips; the id 'all' shows every quote.
rating / reviewsnumber / number4.9 / 2418The average score and the number of reviews in the header.
filter / onFilterChangestring / (id) => void'all'The chip chosen first; called when it changes.
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—Added to the root section.

Add it to your project

Pro includes the full source of this block. Copy its prompt to install it with your coding agent.

LandingTestimonials.jsxlanding-testimonials.csscopy.jskit.jsxkit.cssui/empty-state/ui/chip-group/ui/rating-stars/tokens.cssREADME.md

The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.