---
title: "Testimonial Score"
description: "Shows one score from another site in a card: where it comes from, the number, the stars, and what it counts."
url: https://gelatinui.com/components/testimonial-score
markdown_url: https://gelatinui.com/components/testimonial-score.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/testimonial-score"
version: "2026-11-16"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Testimonial Score

> Shows one score from another site in a card: where it comes from, the number, the stars, and what it counts.

Page: https://gelatinui.com/components/testimonial-score

## When to use it

Best for: A row of real scores with their sources.

- Use a row of two or three cards; they stretch to one height.

## When not to use it

- For an award or a rating in a small badge, use [Testimonial Award](https://gelatinui.com/components/testimonial-award.md).

## Notes for agents

- `TestimonialScoreValue` formats the number in the locale; `format={{ style: "percent" }}` takes 0.97.

## Anatomy

```text
TestimonialScore
├─ TestimonialScoreSource (0..n)
├─ TestimonialScoreValue (0..n)
└─ TestimonialScoreCaption (0..n)
```

## API reference

### TestimonialScore

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `locale` | `string` |  | The BCP 47 locale of the numbers. Default: the `DisplayLocaleProvider`, else "en-US". |
| `labels` | `Partial<TestimonialLabels>` |  |  |

### TestimonialScoreSource

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TestimonialScoreValue

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `number` |  | The score: 4.9, 2380, 97. |
| `max` | `number` |  | The top of the scale ("/ 5"). Leave it out for a count. |
| `format` | `NumberFormatOptions` |  | The `Intl.NumberFormat` options: `{ style: "percent" }` takes 0.97 for "97%". |

### TestimonialScoreCaption

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TestimonialScore | `testimonial-score` |  | `--radius-lg` |  |
| TestimonialScoreSource | `testimonial-score-source` |  |  |  |
| TestimonialScoreValue | `testimonial-score-value` |  |  |  |
| TestimonialScoreCaption | `testimonial-score-caption` |  |  |  |

## Usage

Put the source, the number, the stars, and the caption.

```tsx title="review-score.tsx"
import { StarIcon } from "@phosphor-icons/react/ssr";

import { TestimonialRating } from "@/components/social/testimonial";
import {
  TestimonialScore,
  TestimonialScoreCaption,
  TestimonialScoreSource,
  TestimonialScoreValue,
} from "@/components/pro/social/testimonial-score";

export function ReviewScore() {
  return (
    <TestimonialScore>
      <TestimonialScoreSource>
        <StarIcon aria-hidden />
        Customer reviews
      </TestimonialScoreSource>
      <TestimonialScoreValue value={4.9} max={5} />
      <TestimonialRating value={4.9} />
      <TestimonialScoreCaption>from 412 reviews</TestimonialScoreCaption>
    </TestimonialScore>
  );
}
```

## Compose

Build it with:

- [Testimonial](https://gelatinui.com/components/testimonial.md): Shows one quote with its person.
- [Testimonial Logo Grid](https://gelatinui.com/components/testimonial-logo-grid.md): Shows the customer logos.

Rules:

- Real content (`real-content`): Fill the UI with content of the real product (real names, amounts, dates, and states), never lorem text or "Item 1".
- Depth from layers (`layered-neutrals`): Show depth with one step of the neutral tokens (page, card, muted) or one soft shadow, not with many borders or strong shadows.
- Color has a job (`color-has-a-job`): Use color only for a status, the brand action, or data; keep the rest neutral, and show a level with a small mark (a dot, a tinted badge) before a big fill.
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.

Patterns: `gelatin://patterns/social-proof`

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/testimonial-score
```

It adds 37 registry items: 33 files, 6652 lines, and the npm packages `@base-ui/react`, `@dicebear/core`, `@dicebear/styles`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Testimonial](https://gelatinui.com/components/testimonial.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Testimonial](https://gelatinui.com/components/testimonial.md)
- [Testimonial Award](https://gelatinui.com/components/testimonial-award.md)
- [Rating](https://gelatinui.com/components/rating.md)
- [Count Up](https://gelatinui.com/components/count-up.md)

## Accessibility

The stars are named "Rated 4.9 out of 5".

The number is text, formatted in the locale.
