Testimonials, carousel
betaA 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.
- Pairs with
- Pricing, plansCall to action, banner
Installation
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):
One card shows in a narrow container, two from @2xl, three from @5xl. Without an avatar image, the initials show.
Content
| Field | Type | Limits | Guidance |
|---|---|---|---|
title | string | 8–70 chars | What customers say, summed up: 'Studios that stopped chasing payments'. |
sublineoptional | string | ≤ 180 chars | |
testimonials | object[] | 3–10 items | Real quotes, with permission. One to three show at a time, by width. |
testimonials[].quote | string | 12–240 chars | In the customer's words, one or two sentences. |
testimonials[].name | string | 1–48 chars | |
testimonials[].roleoptional | string | ≤ 60 chars | Role and company, or the city. |
testimonials[].avataroptional | object | ||
testimonials[].avatar.src | string | A local path ('/images/terrace.jpg') or the project's asset URL. | |
testimonials[].avatar.alt | string | ≤ 140 chars | What the image shows, for people who cannot see it. Empty only if purely decorative. |
testimonials[].avatar.width | integer | ||
testimonials[].avatar.height | integer |
Props
| Prop | Notes |
|---|---|
content | TestimonialsCarouselContent; the example when left out |
id | the section's id, for anchor links; "testimonials" by default |
headingLevel | 1, 2 or 3: the heading's tag; 2 by default |
className | on 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>.