Quotes from customers as a masonry grid, a carousel that pauses when you read it, or one large quote. Each card has a name, role, company and an optional star rating. The grid is Free; Carousel and Quote are Pro variants that build on it. The people, quotes and companies shown are fictional.
On this page
- Customer quotes wall
- Agent team reviews
- Launch social proof
- Rated reviews grid
- Landing page quotes
Examples
CarouselPro
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
QuotePro
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
StagePro
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
FacesPro
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Installation
npx knowns-ui@latest add testimonialsPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Testimonials from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/testimonials
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add testimonials
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/use-floating.ts
- components/ui/knowns/tooltip.tsx
- components/ui/knowns/tooltip-utils.ts
- components/ui/knowns/avatar.tsx
- components/ui/knowns/blocks/marketing/marketing-2b-utils.ts
- components/ui/knowns/spinner.tsx
- components/ui/knowns/button.tsx
- components/ui/knowns/illustrations/illust-utils.ts
- components/ui/knowns/illustrations/use-in-view.ts
- components/ui/knowns/marquee/marquee.tsx
- components/ui/knowns/marquee/marquee-utils.ts
- components/ui/knowns/blocks/marketing/section-heading.tsx
- components/ui/knowns/blocks/marketing/marketing-utils.ts
- components/ui/knowns/blocks/marketing/testimonials.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0, class-variance-authority@^0.7.1.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/testimonials, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "testimonials" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- items
{ quote, name, role?, company?, avatar?, rating?, highlight?, href? }[]- The quotes. highlight makes a card larger in the grid.
- columns
2|3- Default
3 - Grid columns at full width (Testimonials).
- interval
number- Default
6000 - Auto-advance in ms; 0 turns it off (TestimonialsCarousel).
- index
number- Default
first highlighted - Which quote to show (TestimonialsQuote).
- metrics (Testimonial)
{ value, label }[]- Up to three figures that back the quote, shown beside it: `{ value: "10 min", label: "to review a run, was 3 h" }`.
- context (Testimonial)
string- One line under the name, e.g. when or how they rolled it out.
- interval (Stage)
number- Default
0 - ms per story; 0 keeps TestimonialsStage manual. Pauses on hover, focus, off screen and with the pause button.
- eyebrow / title / lead / align
ReactNode / start|center- The section heading, on every layout.
- footnote
ReactNode- Small print under the quotes, e.g. where they come from.
- spacing
"default"|"tight"- Default
"default" - Section padding: 64 / 96px (phone / desktop), or 40 / 56px inside a page or a frame.
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { quote, name, role?, company?, avatar?, rating?, highlight?, href? }[] | - | The quotes. highlight makes a card larger in the grid. |
| columns | 2 | 3 | 3 | Grid columns at full width (Testimonials). |
| interval | number | 6000 | Auto-advance in ms; 0 turns it off (TestimonialsCarousel). |
| index | number | first highlighted | Which quote to show (TestimonialsQuote). |
| metrics (Testimonial) | { value, label }[] | - | Up to three figures that back the quote, shown beside it: `{ value: "10 min", label: "to review a run, was 3 h" }`. |
| context (Testimonial) | string | - | One line under the name, e.g. when or how they rolled it out. |
| interval (Stage) | number | 0 | ms per story; 0 keeps TestimonialsStage manual. Pauses on hover, focus, off screen and with the pause button. |
| eyebrow / title / lead / align | ReactNode / start | center | - | The section heading, on every layout. |
| footnote | ReactNode | - | Small print under the quotes, e.g. where they come from. |
| spacing | "default" | "tight" | "default" | Section padding: 64 / 96px (phone / desktop), or 40 / 56px inside a page or a frame. |
The carousel moves with its buttons, the dots, or the arrow keys and Home/End once focused. It stops while it is hovered, focused, off screen or paused, and never moves when reduced motion is on. It announces the new quote only after you move it yourself. Only publish quotes people agreed to.
What it handles
- 01Packs the quotes into a masonry grid of 1, 2 or 3 columns by viewport width, with `columns` as the cap, so tall and short quotes balance.
- 02Gives a quote a bigger type size and an accent edge with `highlight`, for the one you want read first.
- 03Draws an optional star rating from `rating`, rounds it to halves, clamps it between 0 and 5, and names it for assistive tech.
- 04Shows the avatar photo or, without `avatar`, initials on a tint, with the name linking out when the quote has an `href`.
- 05Joins `role` and `company` into one muted byline under each name.
- 06Wraps the grid in a section with an eyebrow, a title, a lead, `align`, tight or default `spacing` and a footnote such as a sample-data note.
States
- First render
- Nothing. The grid paints as it is
- none
- Resize across a breakpoint
- The cards redistribute into the new column count at once
- none
- Hover the name link
- The name gets an underline
- none
- Any change
- Quotes update at once
- none
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The grid paints as it is | none |
| Resize across a breakpoint | The cards redistribute into the new column count at once | none |
| Hover the name link | The name gets an underline | none |
| Any change | Quotes update at once | none |
Works with
When to use
When to use
- Quotes from named customers who agreed to be quoted, near pricing or a sign-up ask.
- One strong quote between feature sections, with the single variant.
When not to use
- Company names alone, without quotes: use Logo Cloud.
- Made-up or unattributed quotes.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Testimonials to my app and wire it to my own data.
- I need quotes from named customers who agreed to be quoted, near pricing or a sign-up ask. Set that up with the Knowns UI Testimonials.
- Which Testimonials props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "testimonials" }) and search_docs({ query: "testimonials" }).