React Testimonials
Testimonials is a React testimonials block that shows customer quotes on glass cards, as a grid or a marquee in one or two rows. The marquee rests on hover, focus, off-screen and has a Pause button.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/testimonials.jsonKind words
Loved by small teams
We replaced three internal component packages and shipped the dashboard in a week.
Sam RiveraEngineering lead
TestimonialsdefaultAuthSplitTestimonialsdefaultTestimonialsLabels- +1 more
Grid
Each quote is a figure with a blockquote and a caption. Ratings are announced as text through labels.rating.
Kind words
Loved by small teams
We replaced three internal component packages with this and shipped the dashboard in a week.
Sam RiveraEngineering lead The focus states and keyboard support are the best I have seen in a glass UI.
Jo LindqvistProduct designer Reduced motion actually works. Every effect has a calm fallback.
Priya NairAccessibility specialist
import { Testimonials, type Testimonial } from "@/components/sheenui/blocks/testimonials";
// Package build (after the first npm release, or a packed tarball): import { Testimonials, type Testimonial } from "@sheenui/theme";
const quotes: Testimonial[] = [
{ id: "1", quote: "We shipped the dashboard in a week.", name: "Sam Rivera", role: "Engineering lead", rating: 5 },
{ id: "2", quote: "The focus states are the best I have seen.", name: "Jo Lindqvist", role: "Product designer", rating: 5 },
{ id: "3", quote: "Reduced motion actually works.", name: "Priya Nair", role: "Accessibility specialist", rating: 5 },
];
export function Example() {
return <Testimonials eyebrow="Kind words" title="Loved by small teams" testimonials={quotes} />;
}Files to copy
9 folders · 18 files · 4 packages
- From
theme/src/ blocks/testimonials.tsxcomponents/button/components/glass-card/components/marquee/components/spinner/hooks/{use-controllable.ts, use-direction.ts, use-intersection.ts, use-latest.ts, use-magnetic.ts, use-media-query.ts, use-preferences.ts}motion/{gate.ts, light-follower.ts, tokens.ts}lib/{cn.ts, form.ts, heading.ts, initials.ts, no-script-reveal.tsx, state-light.tsx, warn-once.ts}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/testimonials.jsonRegistry item: testimonials. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Marquee, two rows
The second row runs the other way. One Pause button drives both rows (controlled with paused and onPausedChange). Hover or focus rests the strip; it also rests off-screen and in a background tab, and stands still under reduced motion.
Loved by small teams
We replaced three internal component packages with this and shipped the dashboard in a week.
Sam RiveraEngineering lead The focus states and keyboard support are the best I have seen in a glass UI.
Jo LindqvistProduct designer Reduced motion actually works. Every effect has a calm fallback.
Priya NairAccessibility specialist
Copying the source meant no surprise upgrades and no lock-in.
Marcus WebbFrontend developer Our marketing pages finally look like the product.
Elena RossiHead of design Dark mode was a token change, not a rewrite.
Kofi MensahStaff engineer
import { useState } from "react";
import { Testimonials, type Testimonial } from "@/components/sheenui/blocks/testimonials";
// Package build (after the first npm release, or a packed tarball): import { Testimonials, type Testimonial } from "@sheenui/theme";
declare const quotes: Testimonial[]; // at least four quotes for two rows
export function Example() {
const [paused, setPaused] = useState(false);
return (
<Testimonials
title="Loved by small teams"
layout="marquee"
rows={2}
speed={28}
paused={paused}
onPausedChange={setPaused}
testimonials={quotes}
/>
);
}Props
TestimonialsLabels keys and English defaults (4)
Keyboard
Accessibility
- Each quote is a <figure> with a <blockquote> and a <figcaption>; the list of quotes is named by labels.list.
- The marquee has a Pause button (WCAG 2.2.2) and rests while hovered, focused, off-screen or in a hidden tab. Reduced motion stops it.
- Avatars and the quote mark are decorative; a star rating is a text alternative ('Rated 5 out of 5').
- Each card is one glass surface; the marquee fades each card's own edge, never a wrapper of glass.
All exports on this page
Testimonials— A wall of customer quotes in glass cards, as a grid or as a marquee.defaultAuthSplitTestimonials— Sample testimonials shown when testimonials is omitted; replace them with real customer quotes.defaultTestimonialsLabels— The English TestimonialsLabels used when labels is omitted; a partial labels prop is merged over it.
When to use the testimonials section
- Use Testimonials in grid layout for three to six longer quotes under the features or the pricing, where each quote is read and the cards rise on a spring as they scroll into view.
- Use layout="marquee" for many short quotes; rows={2} runs the second row the other way, and one controlled Pause button can drive both rows.
- Use rating on a quote to show stars; they are announced as text through labels.rating ('Rated 5 out of 5'), so the rating never lives in colour or shape alone.
- Skip the marquee when each quote is long or when your audience reads slowly; a paused strip or the grid is easier, and WCAG 2.2.2 expects a way to stop moving content.
- Pair it with HeroSection's logo strip, FaqSection and Pricing, and use real quotes with permission rather than invented ones on a live site.
Frequently asked questions
Related pages
20 blocks pages in all: browse them on All blocks.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .