Componentdata0.8 KB gzipZero dependencies
Testimonial
Quote card with initials avatar, name, role and staggered star rating pop-in.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add testimonialOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Testimonial } from "@/components/ui/testimonial"; <Testimonial avatarInitials="JS" name="John Smith" role="Designer" stars={5} />Source code
testimonial.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| avatarInitials | string | Configures avatar initials. (Default: "AB") |
| name | string | Form field name submitted during form serialization. (Default: "Customer Name") |
| role | string | Configures role. (Default: "Role") |
| stars | number | Configures stars. (Default: 5) |
| quote | React.ReactNode | Configures quote. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |
| children | React.ReactNode | Child elements rendered inside the component. |