Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsCards

Testimonial card

A quote with author, role, company, optional avatar and a star rating. Uses next/image.

Preview

Version
Preview theme color
More themes

Lifts on hover with a spring. With reduced motion turned on, it renders the plain layout.

“We swapped our hand-built landing page for Tapas sections in an afternoon. Sample quote.”
Sarah Johnson
Product Manager, Example Co
“We swapped our hand-built landing page for Tapas sections in an afternoon. Sample quote.”
Sarah Johnson
Product Manager, Example Co

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { TestimonialCard } from "@/components/custom/testimonial-card";

<TestimonialCard
  testimonial="What they used, what changed, and why it mattered."
  author="Sarah Johnson"
  role="Product Manager"
  company="Example Co"
  rating={5}
  avatar={customer.avatarUrl}
/>
import { TestimonialCardMotion } from "@/components/custom/testimonial-card/testimonial-card-motion";

<TestimonialCardMotion {...props} />

Props

PropTypeDefaultDescription
testimonial* (required)string–The quote.
author* (required)string–Who said it.
rolestring–Author's role.
companystring–Author's company.
avatarstring–Image URL, rendered with next/image.
ratingnumber–Stars out of 5.
variant"default" | "bordered" | "elevated""default"Card style.
...propsReact.ComponentProps<"div">–Any other div attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
testimonial* (required)string–The quote.
author* (required)string–Who said it.
rolestring–Author's role.
companystring–Author's company.
avatarstring–Image URL, rendered with next/image.
ratingnumber–Stars out of 5.
variant"default" | "bordered" | "elevated""default"Card style.
...propsReact.ComponentProps<"div">–Any other div attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • The rating is announced as “Rated N out of 5”.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.