Testimonial

A customer's words, set large. They arrive a word at a time on scroll, and an optional highlight is swept across the phrase that matters. Replace the sample with a real quote. Cards.

Open playground
Customer nameExample attribution

About

Testimonial is a React component in the Cards category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { Testimonial } from "@ashutoshswamy/smoui" and set highlight, rating, quote among its 5 props.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { Testimonial } from "@ashutoshswamy/smoui";

<Testimonial quote="Your real customer quote" author="Customer name" role="Title, Company" />

Props 5

highlight

A phrase from the quote to sweep a highlighter across.

string
rating

Adds a star row.

number
quote

Quoted words.

string
author

Person attributed to the quote.

string
role / avatar

Optional attribution and photo URL.

string