Skip to content

Testimonial Rotator

Pro

Shows one large quote at a time with the speakers as faces under it. The active face shows a name tag and a line that fills until the next quote.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 16, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Testimonial Rotator needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
46
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put the quotes, then one face per quote.

quote-rotator.tsx

TestimonialRotator

<section>
PropTypeDefaultDescription
intervalnumber8000Time on each quote in ms; 0 holds it. It holds under the pointer and with focus in it.
indexnumber—The quote that shows (controlled).
defaultIndexnumber0The quote that shows first.
onIndexChange—
localestring—The BCP 47 locale of the slide names. Default: the DisplayLocaleProvider, else "en-US".
labels—
...props<section> attributes—Every other attribute goes to the <section>, with a ref.

TestimonialRotatorContent

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TestimonialRotatorFaces

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TestimonialRotatorFace

<button>
PropTypeDefaultDescription
classNamestring—
nameRequiredstring—The person's name: the seed of the face and the name of the button.
srcstring—A photo; the Open Peeps face shows while it loads and when there is none.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Give each quote its TestimonialRotatorFace, in the same order.
TabMoves through the faces.
EnterShows the quote of that face.
SpaceShows the quote of that face.

A region read as a carousel; only the shown quote is in the tree.

Each face is a button named "Show the quote of" and the name, with aria-current on the active one.

Quote
popup · rises 8px out of a 4px blur; the old one fades out faster
Face tag
panel · the name tag opens by its grid track
Time line
progress · fills while the quote shows

Built with

Installs with Testimonial Rotator

Components
Testimonial
  1. AddedTestimonial Rotator, with Testimonial.
Open the release