# Testimonial Notifications

> Testimonials arrive like lock-screen notifications: each new one drops in on top while the rest settle into a stack behind it, and hovering or tapping opens it over the page as a scrolling list, however many there are.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Blocks › Testimonials |
| Live preview | https://uibrik.com/components/testimonial-notifications |
| Writes | 1 file into `components/uibrik/testimonial-notifications/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Dec 1, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/testimonial-notifications.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/testimonial-notifications`.

Can't run commands? https://uibrik.com/components/testimonial-notifications/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { TestimonialNotifications } from "@/components/uibrik/testimonial-notifications/testimonial-notifications";

const items = [
  {
    id: "hannah",
    name: "Hannah Cole",
    role: "Head of Design, Fable",
    avatar: "/registry/testimonial-notifications/hannah.webp",
    hue: 25,
    message: "We swapped our whole marketing site over in a sprint. Conversions went up and nobody had to fight the CSS.",
  },
  {
    id: "tobi",
    name: "Tobi Adeyemi",
    role: "Engineer, Quill",
    avatar: "/registry/testimonial-notifications/tobi.webp",
    hue: 155,
    message: "The motion feels native. Interrupt anything and it just keeps going.",
  },
  // …3 more
];

<TestimonialNotifications
  autoplay
  interval={3200}
  expandOn="hover"
  depth={2}
  maxHeight={400}
  items={items}
  defaultExpanded={false}
  // expanded={false}
  // onExpandedChange={(expanded) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/testimonial-notifications.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `autoplay` | `boolean` | `true` | Bring in a new testimonial on a timer. Holds while open, hovered or off screen. |
| `interval` | `number` | `3200` | Time between testimonials. |
| `expandOn` | `"hover" \| "click"` | `"hover"` | Open on hover (taps still toggle), or only on click. |
| `depth` | `number` | `2` | Cards peeking out behind the top one. |
| `maxHeight` | `number` | `400` | Tallest the open list grows before it scrolls. It opens over the page, so nothing below moves. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `items` | `{ id: string; name: string; role?: string; message: string; avatar: string; hue: number }[]` | `SAMPLE_NOTIFICATIONS` | Testimonials to cycle through. `hue` is an OKLCH hue (0–360) for the badge on the photo. |
| `expanded / onExpandedChange` | `boolean / (expanded: boolean) => void` |  | Controlled open state. |
| `defaultExpanded` | `boolean` | `false` | Open to begin with. |
| `className` | `string` |  | Classes for the stack. |

## Where it fits

- **Hero sections**: A compact stack beside the headline keeps fresh praise arriving without taking much room. Pairs with [Testimonial Thread](https://uibrik.com/components/testimonial-thread.md) (Pro).
- **Mobile apps and tools**: Notification cards look at home next to phone mockups and app screenshots. Pairs with [Avatar Stack](https://uibrik.com/components/avatar-stack.md).
- **Pricing pages**: A stack under the plans adds proof that people can open when they want it. Pairs with [Testimonial Carousel](https://uibrik.com/components/testimonial-carousel.md).

## Same shelf: Testimonials

- [Testimonial Orbit](https://uibrik.com/components/testimonial-orbit.md) (Pro): Customer photos on a slow ring around one quote; picking a face flies it into the middle while the quote cross-fades. On narrow screens the ring becomes an arch above the quote.
- [Testimonial Spotlight](https://uibrik.com/components/testimonial-spotlight.md) (Pro): A grid of faces in black and white with one person in the spotlight: their face turns to colour and grows, a ring in their colour times the autoplay, a ripple runs across the grid and their quote sits in a tinted panel beside it.
- [Testimonial Thread](https://uibrik.com/components/testimonial-thread.md) (Pro): Testimonials arrive like chat messages: a typing indicator beside the person's photo, then the bubble opens into their message, the thread glides up and a reaction badge springs on with its count ticking up.
- [Testimonial Wall](https://uibrik.com/components/testimonial-wall.md) (Pro): Columns or rows of quote cards that scroll endlessly at their own pace, neighbours running against each other; hovering a lane stops it so the quote can be read.
- [Mesh Testimonial](https://uibrik.com/components/mesh-testimonial.md) (Pro): Tall testimonial cards painted with a live mesh gradient in each person's own colour, in an endless row that autoplays, drags and steps with arrows; paint every card, or only the one in the spotlight.
- [Testimonial Bubbles](https://uibrik.com/components/testimonial-bubbles.md) (Pro): Customer photos float in a cluster of different sizes; pick one and it glides to the centre, its neighbours drift aside, and the bubble opens into a card with the quote.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/testimonial-notifications/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
