Componentdata0.8 KB gzipZero dependencies

Testimonial

Quote card with initials avatar, name, role and staggered star rating pop-in.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add testimonial

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Testimonial } from "@/components/ui/testimonial"; <Testimonial avatarInitials="JS" name="John Smith" role="Designer" stars={5} />

Source code

testimonial.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxtestimonial.tsx66 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface TestimonialProps extends React.HTMLAttributes<HTMLElement> {  avatarInitials?: string;  name?: string;  role?: string;  stars?: number;  quote?: React.ReactNode;  className?: string;  children?: React.ReactNode;} export function Testimonial({  avatarInitials = "AB",  name = "Customer Name",  role = "Role",  stars = 5,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { Testimonial } from "@/components/ui/testimonial"; <Testimonial />
PropTypeDescription
avatarInitialsstringConfigures avatar initials. (Default: "AB")
namestringForm field name submitted during form serialization. (Default: "Customer Name")
rolestringConfigures role. (Default: "Role")
starsnumberConfigures stars. (Default: 5)
quoteReact.ReactNodeConfigures quote.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.
childrenReact.ReactNodeChild elements rendered inside the component.