Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/rotating-quote-dots.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/testimonials/testimonial10.tsx instead.
Usage
The file also exports testimonial10Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Testimonial10, testimonial10Demo } from "@/components/blocks/testimonials/testimonial10"; export default function Page() { return <Testimonial10 {...testimonial10Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | undefined | Section heading above the quote. |
| quotes | QuoteEntry[] | none | Testimonials to rotate through; the dot row renders one dot per entry. |
| className | string | none | Extra classes for the outer section element. |
Types
type QuoteEntry = { quote: string; name: string; role: string; };
Behavior notes
- This is a real client component with genuine local state (useState for the active index), not a decorative animation.
- There is no auto-advance timer: the displayed quote only changes when a viewer clicks a dot.
- Each dot has an explicit aria-label ("Go to testimonial N") and aria-current on the active dot; the active dot is also visually wider and filled, inactive dots are a small filled circle.
- The demo props for this block live in a separate sibling file (testimonial10.demo.tsx) rather than the client component file itself, per this repo's client-component demo-file-split rule.
More Testimonials Blocks
View all →Single Large Quote
One large centered pull-quote with a decorative quote mark and a simple avatar attribution below.
Three Column Grid
Responsive grid of quote cards, each with a star rating, avatar, name, role, and quote text.
Quote Carousel
Interactive one-at-a-time quote carousel with prev/next arrows and clickable dot indicators.
Video Testimonial Grid
Grid of video-style testimonial cards, each a 16:9 thumbnail with a play-button overlay and a caption.
Masonry Wall
"Wall of love" style masonry layout of many short quote cards using CSS columns, not a JS library.
Quote With Stats Sidebar
Split layout pairing a large quote and attribution with a sidebar of 2-3 result stats.