Video grid — Testimonials block
Freetestimonials-video-grid · for landing, home pages
Video grid
Two to six films as cards, each with its poster, quote and person: several customers of equal weight
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/testimonials-video-gridUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TestimonialsVideoGrid from '@/components/trame/blocks/testimonials/testimonials-video-grid.vue'
const props = {
title: "They tell their story in two minutes",
intro: "Retailers, in their own words, in front of their workshop or their computer.",
stories: [
{
name: "Ivy Marchand",
role: "Founder",
company: "Atelier du Midi",
poster: "https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1600&q=80",
alt: "A man and a woman cooking in a bright kitchen with red pots",
video: "/media/films/ines.mp4",
quote: "I used to spend my evenings copying out orders. Now I pack the boxes, and that’s it.",
result: "We doubled our shipments in a month without hiring.",
duration: "2:14"
},
{
name: "Hugo Delmas",
role: "Manager",
company: "Maison Delmas",
poster: "https://images.unsplash.com/photo-1791298043001-d6488112d8da?w=1600&q=80",
alt: "People around a workshop table, with pencils and markers in front of them",
video: "/media/films/hugo.mp4",
quote: "Setup took one afternoon. Our workshop customers now order from their couch.",
result: "The online shop took over on weekends.",
duration: "1:48"
}
],
cta: {
label: "Read all the stories",
action: "stories"
},
options: {
eyebrow: "Video testimonials"
}
}
</script>
<template>
<TestimonialsVideoGrid v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s title, an h2 ("They tell their story") |
| intro | string | Wordsone sentence under the title |
| stories* | Story[] | the customers’ video stories |
| cta | Cta | the call to action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Story stories[] · 10 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe customer’s name, as they agreed to show it |
| role | string | Wordswhat they do ("Founder") |
| company | string | Wordstheir business, only if they gave it |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| poster | string | Picturethe film’s still picture |
| alt | string | Wordswhat the poster shows |
| video* | string | Picturethe film: a file (.mp4,.webm) or the address of an embed. Nothing of it loads before the visitor presses play |
| quote* | string | Wordsthe customer’s own words, as they said them: never rewritten into praise |
| result | string | Wordsthe result in their words ("We doubled our shipments in a month"): the customer’s, never the merchant’s claim |
| duration | string | Wordsthe film’s length as the merchant knows it ("2:14") |
Cta cta · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Read all the stories") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short label above the title ("Video testimonials") |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
cta
A testimonials section, for landing, home pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
More testimonials blocks
- Rotator: a few longer quotes told one at a time with their authors’ photos stacked beside: quotes that need room, and a visitor who reads.
- Social proof bar inline: avatars, stars and the count on one line, next to a hero or an action: the quietest signal; the merchant’s own only.
- Social proof bar stat trio: the rating set large with its stars and count, beside one or two other figures in a ruled band of cells: a section of its own between two others, when the merchant has a figure or two to stand by; the merchant’s own only.
- Spotlight: one customer told large with their portrait and up to three of their own figures: a landing with one strong story.
- Strip with figures: one quote on the left and three result figures as cards on the right: a customer whose results are the argument.
- Wall masonry: every quote and film at once in balanced columns, the films taller, folded to the first few on a phone: a wall to take in at a glance, for three to sixteen testimonials of both kinds; the merchant’s own customers and films only.
- Wall offset rows: two rows of quote and film cards, the second shifted half a card, each row swiped or stepped sideways on its own (one row on a phone or under six testimonials): a coach, a course or a product with six to sixteen testimonials of both kinds to browse; the merchant’s own customers and films only.
- Wall: three to eight short quotes of equal weight, the first set apart on the brand’s colour: a shop with a handful of good words.