Testimonial Carousel
Large display-type quotes sliding on direction-aware springs with swipe/drag, arrow keys and a progress-filled dot for auto-advance. Pauses on hover, focus and drag.
Try it: Swipe or drag, press ←/→, or use the arrows; hover to pause.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/testimonial-carousel.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/testimonial-carousel. You can also copy the source into components/ui/testimonial-carousel.tsx (view on GitHub).
Usage
import { TestimonialCarousel } from '@/components/ui/testimonial-carousel'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
items | { quote, name, role, company? }[] | 4 sample quotes | Testimonials. |
interval | number | 7000 | Auto-advance in ms (0 disables). |
onChange | (index: number) => void | — | Fires when the slide changes. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Portfolio components
- Client Logo Strip
A calm trust row of generated marks with a cursor-following spotlight that lights hairline borders; marks lift and spin a few degrees on hover/focus.
- Impact Stats
Odometer counters: every digit is a reel spinning to its value on its own spring when the row scrolls in — right-most digits settle last, like a mechanical counter.
- Contact Form Card
Validated on blur and submit with announced inline errors (shake + focus jump), optional async onSubmit with a sending morph, a drawn-check success scene with a particle burst, and a failure state…
- Skill Meters
Radial gauges that sweep to their value on scroll-in: glowing gradient arc, a comet dot on the tip and a live count-up. Staggered, replayable and exposed as ARIA meters.
- Social Dock
A floating link dock whose icons swell with a spring as the pointer (or keyboard focus) nears them, with a coloured halo and a springy label chip. Generic glyphs — bring your own.
- Skills Marquee
Two counter-rotating rails of skill pills. Hover or keyboard focus pauses, a visible Pause button covers touch and WCAG 2.2.2, and reduced motion becomes a calm wrapped list.