Wall offset rows — Testimonials block
Protestimonials-wall-offset-rows · for home, landing, about pages
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.
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-wall-offset-rowsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TestimonialsWallOffsetRows from '@/components/trame/blocks/testimonials/testimonials-wall-offset-rows.vue'
const props = {
eyebrow: "In their words",
title: "What our clients say, on paper and on camera",
intro: "Managers and founders from the coaching studio and the twelve-week course, in their own words.",
items: [
{
kind: "film",
video: "/media/films/ines.mp4",
poster: {
src: "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=900&q=80",
alt: "A woman in a gray blazer sitting by an office window, a laptop on her knees"
},
author: {
name: "Dana Whitfield",
role: "Head of Operations",
company: "Larkspur Logistics"
},
quote: "I stopped running every meeting myself, and my team started finishing my sentences.",
duration: "1:24"
},
{
kind: "quote",
text: "Twelve weeks, one hour a week. It is the first program where the homework was about my real calendar, not a case study.",
author: {
name: "Marcus Bell",
role: "Engineering manager",
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=240&q=80"
},
rating: 5
}
],
action: {
label: "Read every story",
action: "stories"
},
note: "Collected after each cohort, with every client’s consent. Films recorded at the studio.",
options: {
mood: "inverse"
}
}
</script>
<template>
<TestimonialsWallOffsetRows v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short label above the title ("In their words") |
| title* | string | Wordsthe section’s title, an h2 ("What our clients say, on paper and on camera") |
| intro | string | Wordsone or two sentences under the title |
| items* | (Item | Item)[] | 3 to 16 of the merchant’s own testimonials, quotes and films mixed in the order given: collected word for word with each customer’s consent, never written by the agent |
| action | Action | the section’s one call to action ("Read every story") |
| note | string | Wordsa small honest line under the wall (how and when the testimonials were collected), as the merchant wrote it |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Action action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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:
action
A testimonials section, for home, landing, about pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More testimonials blocks
- 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.
- Video feature: one customer’s film large with their words beside it and the others as thumbnails to pick: a story worth watching, with a few more behind it.
- Video grid: two to six films as cards, each with its poster, quote and person: several customers of equal weight.
- Video rail: tall portrait films in a swipeable row with the quote over the picture: many short customer stories.
- 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.