Skip to content
New

Testimonials, carousel

beta

A title and three to ten customer quotes in cards, one to three at a time, with arrows, dots and swipe.

npx rasengan-ui add testimonials-carousel

Studios that stopped chasing payments

Agencies, freelancers and small teams use Senbon to send invoices and get paid.

Use it
Several short quotes from named customers, after the features or the stats.
Avoid it
One or two quotes: put them in a cta-banner or the hero's note instead.

Installation

Terminal
npx rasengan-ui add testimonials-carousel

It installs into components/blocks/testimonials-carousel/, with what it uses (Carousel, Card, Avatar) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { TestimonialsCarousel } from "@/components/blocks/testimonials-carousel";
import { home } from "@/content/home";
 
export default function Home() {
  return <TestimonialsCarousel content={home.testimonials} />;
}
content/home.ts
import { example, type TestimonialsCarouselContent } from "@/components/blocks/testimonials-carousel";
 
export const home = {
  testimonials: {
    ...example,
    title: "Your section title",
  } satisfies TestimonialsCarouselContent,
};

One card shows in a narrow container, two from @2xl, three from @5xl. Without an avatar image, the initials show.

Content

FieldTypeLimitsGuidance
titlestring8–70 charsWhat customers say, summed up: 'Studios that stopped chasing payments'.
sublineoptionalstring≤ 180 chars
testimonialsobject[]3–10 itemsReal quotes, with permission. One to three show at a time, by width.
testimonials[].quotestring12–240 charsIn the customer's words, one or two sentences.
testimonials[].namestring1–48 chars
testimonials[].roleoptionalstring≤ 60 charsRole and company, or the city.
testimonials[].avataroptionalobject
testimonials[].avatar.srcstringA local path ('/images/terrace.jpg') or the project's asset URL.
testimonials[].avatar.altstring≤ 140 charsWhat the image shows, for people who cannot see it. Empty only if purely decorative.
testimonials[].avatar.widthinteger
testimonials[].avatar.heightinteger

Props

PropNotes
contentTestimonialsCarouselContent; the example when left out
idthe section's id, for anchor links; "testimonials" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the root element, for spacing

Accessibility

  • The Carousel is a region named by the title, each slide a group ("2 of 4"), with arrows, dots, the keyboard and swipe.
  • Each quote is a <figure>: the <blockquote>, then who said it in the <figcaption>.