Testimonials

Quotes from the people who use a product, with who said them, as a grid of cards or one large quote.

Testimonials

Your headline goes here

A short line about what the product does goes here.

  • “A short quote goes here.”

    User 1
    Role, Company
  • “A longer quote goes here, running on to a second line, so the cards show how they line up.”

    User 2
    Role, Company
  • “A short quote goes here, a little longer than the first.”

    User 3
    Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";

const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here.",
    author: { name: "User 1", role: "Role, Company" },
  },
  {
    quote:
      "A longer quote goes here, running on to a second line, so the cards show how they line up.",
    author: { name: "User 2", role: "Role, Company" },
  },
  {
    quote: "A short quote goes here, a little longer than the first.",
    author: { name: "User 3", role: "Role, Company" },
  },
];

const Example = () => (
  <Testimonials
    description="A short line about what the product does goes here."
    eyebrow="Testimonials"
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Usage

import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";
const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here.",
    author: { name: "User 1", role: "Role, Company" },
  },
  {
    quote: "A short quote goes here.",
    author: { name: "User 2", role: "Role, Company" },
  },
  {
    quote: "A short quote goes here.",
    author: { name: "User 3", role: "Role, Company" },
  },
];

<Testimonials
  eyebrow="Testimonials"
  title="Your headline goes here"
  description="A short line about what the product does goes here."
  items={items}
/>

Examples

One large quote

layout="single" gives the first quote the band, large and centred.

“A short quote goes here, long enough to run on to a second line.”

User 1
Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";

const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here, long enough to run on to a second line.",
    author: { name: "User 1", role: "Role, Company" },
  },
];

const Example = () => <Testimonials items={items} layout="single" />;

export default Example;

Wall

layout="wall" lays quotes of every length down columns, each on a card at its own height.

Testimonials

Your headline goes here

A short line about what the product does goes here.

  • “A short quote goes here.”

    User 1
    Role, Company
  • “A longer quote goes here, running on to a second line, so the cards show how they line up.”

    User 2
    Role, Company
  • “A short quote goes here, a little longer than the first.”

    User 3
    Role, Company
  • “A quote of middling length goes here, a sentence or two.”

    User 4
    Role, Company
  • “A short quote goes here.”

    User 5
    Role, Company
  • “A longer quote goes here, running on to a second line and then a third, so the wall shows how quotes of every length stack.”

    User 6
    Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";

const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here.",
    author: { name: "User 1", role: "Role, Company" },
    rating: 5,
  },
  {
    quote:
      "A longer quote goes here, running on to a second line, so the cards show how they line up.",
    author: { name: "User 2", role: "Role, Company" },
    rating: 5,
  },
  {
    quote: "A short quote goes here, a little longer than the first.",
    author: { name: "User 3", role: "Role, Company" },
    rating: 5,
  },
  {
    quote: "A quote of middling length goes here, a sentence or two.",
    author: { name: "User 4", role: "Role, Company" },
    rating: 5,
  },
  {
    quote: "A short quote goes here.",
    author: { name: "User 5", role: "Role, Company" },
    rating: 5,
  },
  {
    quote:
      "A longer quote goes here, running on to a second line and then a third, so the wall shows how quotes of every length stack.",
    author: { name: "User 6", role: "Role, Company" },
    rating: 5,
  },
];

const Example = () => (
  <Testimonials
    description="A short line about what the product does goes here."
    eyebrow="Testimonials"
    items={items}
    layout="wall"
    title="Your headline goes here"
  />
);

export default Example;

Beside a photo

layout="photo" sets one quote, its stars and who said it beside the picture in media.

“A short quote goes here.”

User 1
Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";
import { Image01Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";

const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here.",
    author: { name: "User 1", role: "Role, Company" },
    rating: 5,
  },
];

const Example = () => (
  <Testimonials
    items={items}
    layout="photo"
    media={
      <div className="flex aspect-[4/3] items-center justify-center rounded-2xl border border-border bg-card text-muted-foreground">
        <Icon icon={Image01Icon} size={32} />
      </div>
    }
  />
);

export default Example;

Moving rows

layout="marquee" drifts the quotes in two rows on the kit's Marquee, the second the other way, pausing under the pointer and standing still for anyone who asks for less motion.

Testimonials

Your headline goes here

A short line about what the product does goes here.

  • “A short quote goes here.”

    User 1
    Role, Company
  • “A longer quote goes here, running on to a second line, so the cards show how they line up.”

    User 2
    Role, Company
  • “A short quote goes here, a little longer than the first.”

    User 3
    Role, Company
  • “A quote of middling length goes here, a sentence or two.”

    User 4
    Role, Company
  • “A short quote goes here.”

    User 5
    Role, Company
  • “A longer quote goes here, running on to a second line and then a third, so the wall shows how quotes of every length stack.”

    User 6
    Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";

const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here.",
    author: { name: "User 1", role: "Role, Company" },
    rating: 5,
  },
  {
    quote:
      "A longer quote goes here, running on to a second line, so the cards show how they line up.",
    author: { name: "User 2", role: "Role, Company" },
    rating: 5,
  },
  {
    quote: "A short quote goes here, a little longer than the first.",
    author: { name: "User 3", role: "Role, Company" },
    rating: 5,
  },
  {
    quote: "A quote of middling length goes here, a sentence or two.",
    author: { name: "User 4", role: "Role, Company" },
    rating: 5,
  },
  {
    quote: "A short quote goes here.",
    author: { name: "User 5", role: "Role, Company" },
    rating: 5,
  },
  {
    quote:
      "A longer quote goes here, running on to a second line and then a third, so the wall shows how quotes of every length stack.",
    author: { name: "User 6", role: "Role, Company" },
    rating: 5,
  },
];

const Example = () => (
  <Testimonials
    description="A short line about what the product does goes here."
    eyebrow="Testimonials"
    items={items}
    layout="marquee"
    title="Your headline goes here"
  />
);

export default Example;

Films

layout="films" sets each quote under its own short film, a Video with mode="large" that opens over the page.

Reviews

Your headline goes here

A short line about the customers goes here.

  • “A short quote from a customer goes here.”

    User 1
    Role
  • “A short quote from a customer goes here.”

    User 2
    Role
  • “A short quote from a customer goes here.”

    User 3
    Role
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";
import { Video } from "@produkto/ui/Video";

const film = (n: number) => (
  <Video
    alt=""
    mode="large"
    poster={`https://picsum.photos/id/${n}/1200/675`}
    src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
  />
);

const items: TestimonialItem[] = [
  {
    quote: "A short quote from a customer goes here.",
    author: { name: "User 1", role: "Role" },
    media: film(1005),
  },
  {
    quote: "A short quote from a customer goes here.",
    author: { name: "User 2", role: "Role" },
    media: film(1011),
  },
  {
    quote: "A short quote from a customer goes here.",
    author: { name: "User 3", role: "Role" },
    media: film(1012),
  },
];

const Example = () => (
  <Testimonials
    description="A short line about the customers goes here."
    eyebrow="Reviews"
    items={items}
    layout="films"
    title="Your headline goes here"
  />
);

export default Example;

Two columns

columns={2} sets the cards two across, so each quote has more room.

Testimonials

Your headline goes here

A short line about what the product does goes here.

  • “A longer quote goes here, running on to a second line, so the cards show how they line up.”

    User 1
    Role, Company
  • “A short quote goes here.”

    User 2
    Role, Company
  • “A short quote goes here, a little longer than the last.”

    User 3
    Role, Company
  • “A longer quote goes here, running on to a second line, so the cards show how they line up.”

    User 4
    Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";

const items: TestimonialItem[] = [
  {
    quote:
      "A longer quote goes here, running on to a second line, so the cards show how they line up.",
    author: { name: "User 1", role: "Role, Company" },
  },
  {
    quote: "A short quote goes here.",
    author: { name: "User 2", role: "Role, Company" },
  },
  {
    quote: "A short quote goes here, a little longer than the last.",
    author: { name: "User 3", role: "Role, Company" },
  },
  {
    quote:
      "A longer quote goes here, running on to a second line, so the cards show how they line up.",
    author: { name: "User 4", role: "Role, Company" },
  },
];

const Example = () => (
  <Testimonials
    columns={2}
    description="A short line about what the product does goes here."
    eyebrow="Testimonials"
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Muted

muted sets the band a shade off the page, so the cards stand out on it.

Testimonials

Your headline goes here

A short line about what the product does goes here.

  • “A short quote goes here.”

    User 1
    Role, Company
  • “A longer quote goes here, running on to a second line, so the cards show how they line up.”

    User 2
    Role, Company
  • “A short quote goes here, a little longer than the first.”

    User 3
    Role, Company
import {
  Testimonials,
  type TestimonialItem,
} from "@produkto/ui/Testimonials";

const items: TestimonialItem[] = [
  {
    quote: "A short quote goes here.",
    author: { name: "User 1", role: "Role, Company" },
  },
  {
    quote:
      "A longer quote goes here, running on to a second line, so the cards show how they line up.",
    author: { name: "User 2", role: "Role, Company" },
  },
  {
    quote: "A short quote goes here, a little longer than the first.",
    author: { name: "User 3", role: "Role, Company" },
  },
];

const Example = () => (
  <Testimonials
    description="A short line about what the product does goes here."
    eyebrow="Testimonials"
    items={items}
    muted
    title="Your headline goes here"
  />
);

export default Example;

API Reference

Testimonials

TestimonialsProps · blocks/Testimonials/Testimonials.types.ts
PropTypeDefault
itemsTestimonialItem[]-
layoutTestimonialsLayout"grid" | "single" | "carousel" | "wall" | "photo" | "marquee" | "films""grid"
columnsTestimonialsColumns2 | 33
mediaReactNode-
actionsBlockAction[]-
idstring-
eyebrowstring-
titleReactNode-
descriptionReactNode-
alignSectionAlign"start" | "center" | "end""start"
mutedbooleanfalse
classNamestring-

TestimonialItem

used by items
PropTypeDefault
quoterequiredstring-
authorrequiredTestimonialAuthor-
ratingnumber-
mediaReactNode-

BlockAction

used by actions
PropTypeDefault
appearanceButtonAppearance"solid" | "soft" | "outline" | "transparent"-
toneButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info"-
iconReactNode-
iconOnlyboolean-
borderRadiusBlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full"-
labelrequiredstring-
linkrequiredstring-

TestimonialAuthor

used by its parts
PropTypeDefault
namerequiredstring-
rolestring-
avatarstring-