Skip to content

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.json

Kind words

Loved by small teams

  • We replaced three internal component packages and shipped the dashboard in a week.
    Sam RiveraEngineering lead
  • Testimonials
  • defaultAuthSplitTestimonials
  • defaultTestimonialsLabels
  • +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

Files to copy

9 folders · 18 files · 4 packages
From theme/src/
  • blocks/testimonials.tsx
  • components/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

Props

PropTypeDefaultDescription
testimonials (required)Testimonial[]NoneLists the quotes the section shows (Testimonial[]).
eyebrowReactNodeNoneShows a small label above the title (ReactNode).
titleReactNodeNoneSets the section heading (ReactNode).
descriptionReactNodeNoneSets the line under the heading (ReactNode).
layout"grid" | "marquee""grid""grid" lays the quotes out in columns; "marquee" scrolls them in one or two rows that rest when the block is off-screen, hovered or focused, with a Pause button.
columns2 | 33Columns of the grid on a wide block (2 | 3; it steps down by the block's own width).
rows2 | 11Rows of the marquee (1 | 2); the second row runs the other way. Needs at least four quotes.
speednumber32Sets the marquee speed in pixels per second (number).
pausedbooleanNoneControls whether the marquee is paused (boolean). Use with onPausedChange.
defaultPausedbooleanfalseWhether the marquee starts paused when uncontrolled (boolean).
onPausedChange((paused: boolean) => void)NoneCalled when the Pause / Play button is pressed ((paused: boolean) => void).
headingLevelHeadingLevelOption2Level of the section heading (1 to 6); "none" renders plain text.
labelsPartial<TestimonialsLabels>defaultTestimonialsLabelsEvery other string, for translation: labels={{ region: "…" }}; omitted keys keep the English of defaultTestimonialsLabels. All 4 keys of TestimonialsLabels are listed in the key table under the props table.
classNamestringNoneAdds extra classes to the section (string).
TestimonialsLabels keys and English defaults (4)
Pass any key in labels; the rest keep the defaults of defaultTestimonialsLabels.
KeyEnglish default
regionTestimonials
listCustomer quotes
rating(stars) => `Rated ${stars} out of 5`
marquee{ pause: "Pause the quotes", play: "Play the quotes" }

Keyboard

KeysAction
TabThe grid has no stops. In the marquee, the Pause / Play button comes first.
Enter/SpacePause or resume the marquee.
Focus inside the stripRests the marquee while focus is there.

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

20 blocks pages in all: browse them on All blocks.

By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .